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:
parent
5444ed56ab
commit
bd7d8665a0
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue