Skip to content

#user_stamp (module ClassMethods)

kraudio edited this page Sep 13, 2010 · 1 revision

user_stamp(*models)

  1. 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

Clone this wiki locally