I want to know what method updates my object. I have ActiveRecord class Event
, with column method_name
in it. Is there some way to save caller method in that column after my object was updated?
Update
I though about something like this:
class Event
after_save :set_caller
def set_caller
self.update(method_name: caller)
end
end
But at this moment caller is active_support/callbacks.rb