method

observed_class

Importance_1
v2.3.8 - 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.