class method
self.new
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.2.22.5Signature
self.new()
Start observing the declared classes and their subclasses.
Source
# File activemodel/lib/active_model/observing.rb, line 190
def initialize
observed_classes.each { |klass| add_observer!(klass) }
end
Defined in activemodel/lib/active_model/observing.rb line 190
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Observer