method

add_observer!

Importance_0
v2.1.0 - 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)
        klass.class_eval 'def after_find() end' unless klass.respond_to?(:after_find)
      end
Register or log in to add new notes.