I had after_save callback in my Rails app
after_save :foo
def foo
return unless saved_change_to_bar?
[some workflow action]
end
I want to know if there is some function to check if the save action was did it in console in order to do something like this.
after_save :foo
def foo
return unless saved_change_to_bar? || action_performed_in_console?
[some workflow action]
end
Thanks