Commit 72c34d1c53adaf7d2a1b8026535ceeddd5a28f50

Authored by Victor Costa
1 parent 1e6dcfa7

rails3: fix observer creation for models in user_stamp

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
vendor/plugins/user_stamp/lib/user_stamp.rb
... ... @@ -13,7 +13,7 @@ module UserStamp
13 13  
14 14 module ClassMethods
15 15 def user_stamp(*models)
16   - models.each { |klass| klass.add_observer(UserStampSweeper.instance) }
  16 + models.each { |klass| UserStampSweeper.observe(klass) }
17 17  
18 18 class_eval do
19 19 cache_sweeper :user_stamp_sweeper
... ...