Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove reference to ActiveRecord from ActiveModel comments

  • Loading branch information...
commit da82b0a746c36ea1274041b0d2401903abf33904 1 parent 93c208a
@brainopia brainopia authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 activemodel/lib/active_model/observing.rb
View
10 activemodel/lib/active_model/observing.rb
@@ -13,14 +13,18 @@ module ClassMethods
#
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.