Module: UserStamp::ClassMethods

Defined in:
lib/user_stamp.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) user_stamp(*models)



15
16
17
18
19
20
21
# File 'lib/user_stamp.rb', line 15

def user_stamp(*models)
  models.each { |klass| klass.add_observer(UserStampSweeper.instance) }
  
  class_eval do
    cache_sweeper :user_stamp_sweeper
  end
end