method
add_observer!
add_observer!(klass)
protected
Hide source
# File activerecord/lib/active_record/observer.rb, line 190 def add_observer!(klass) klass.add_observer(self) if respond_to?(:after_find) && !klass.method_defined?(:after_find) klass.class_eval 'def after_find() end' end end