From bd7d8665a083f534f9d1aaa544d912f933b4fd61 Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Wed, 16 Feb 2011 14:15:48 -0800 Subject: 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. --- activemodel/lib/active_model/observing.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activemodel/lib/active_model/observing.rb') diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb index bf4fd0740c..dde3a882cf 100644 --- a/activemodel/lib/active_model/observing.rb +++ b/activemodel/lib/active_model/observing.rb @@ -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 -- cgit v1.2.3