Edit: for Rails> = 3 see answer from @ nothing-special-here
There is. Together with after_initialize , after_find is a special case. You must define a method, after_find :some_method not enough. This should work, however:
class Post < ActiveRecord::Base def after_find
You can learn more about this in the API .
August lilleaas
source share