method

add_observer!

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActiveRecord::Observer
add_observer!(klass) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

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
Register or log in to add new notes.