method

method_added

rails latest stable - Class: ActiveRecord::Observer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.0) is shown here.

method_added(method)
public

No documentation available.

# File activerecord/lib/active_record/observer.rb, line 100
    def self.method_added(method)
      method = method.to_sym

      if ActiveRecord::Callbacks::CALLBACKS.include?(method)
        self.observed_methods += [method]
        self.observed_methods.freeze
      end
    end