Flowdock
method

observed_classes

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::Observer

Method deprecated or moved

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

observed_classes() public

Returns an array of Classes to observe.

You can override this instead of using the observe helper.

class AuditObserver < ActiveModel::Observer
  def self.observed_classes
    [Account, Balance]
  end
end
Show source
Register or log in to add new notes.