I would like to know if it is possible to call a method from a model after using find.
Something like after_save, but after_find.
after_save
after_find
T
If you need the found object in your method:
class SomeClass < ActiveRecord::Base after_find{ |o| do_something(o) } def do_something(o) # ... end end
More details here: http://guides.rubyonrails.org/active_record_callbacks.html#after-initialize-and-after-find