mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove reference to ActiveRecord from ActiveModel comments
This commit is contained in:
parent
93c208a630
commit
da82b0a746
1 changed files with 7 additions and 3 deletions
|
@ -13,14 +13,18 @@ module ActiveModel
|
|||
#
|
||||
# Activates the observers assigned. Examples:
|
||||
#
|
||||
# class ORM
|
||||
# include ActiveModel::Observing
|
||||
# end
|
||||
#
|
||||
# # Calls PersonObserver.instance
|
||||
# ActiveRecord::Base.observers = :person_observer
|
||||
# ORM.observers = :person_observer
|
||||
#
|
||||
# # Calls Cacher.instance and GarbageCollector.instance
|
||||
# ActiveRecord::Base.observers = :cacher, :garbage_collector
|
||||
# ORM.observers = :cacher, :garbage_collector
|
||||
#
|
||||
# # Same as above, just using explicit class references
|
||||
# ActiveRecord::Base.observers = Cacher, GarbageCollector
|
||||
# ORM.observers = Cacher, GarbageCollector
|
||||
#
|
||||
# Note: Setting this does not instantiate the observers yet.
|
||||
# +instantiate_observers+ is called during startup, and before
|
||||
|
|
Loading…
Reference in a new issue