1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

add note about observer config for rails apps

ActiveModel::Observer and ActiveRecord::Observer have similar
documentation, but a Rails user looking at the ActiveModel version
might not realize that a change to config/application.rb is
required to activate the observer. This change adds a note to
that effect, pointing to the AR version from the AM version.
This commit is contained in:
Jimmy Cuadra 2011-02-16 14:15:48 -08:00
parent 5444ed56ab
commit bd7d8665a0

View file

@ -156,6 +156,10 @@ module ActiveModel
# The AuditObserver will now act on both updates to Account and Balance by treating
# them both as records.
#
# If you're using an Observer in a Rails application with Active Record, be sure to
# read about the necessary configuration in the documentation for
# ActiveRecord::Observer.
#
class Observer
include Singleton