Flowdock
method

observed_classes

Importance_1
v3.2.3 - Show latest stable - 0 notes - Class: ActiveModel::Observer
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.