method

observed_class

Importance_1
v1.2.6 - Show latest stable - 0 notes - Class: ActiveRecord::Observer
observed_class() public

The class observed by default is inferred from the observer’s class name:

  assert_equal [Person], PersonObserver.observed_class
Show source
Register or log in to add new notes.