method

observed_class

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