Module: Ddb::Controller::Userstamp

Defined in:
lib/userstamp.rb

Overview

The Userstamp module, when included into a controller, adds a before filter (named set_stamper) and an after filter (name reset_stamper). These methods assume a couple of things, but can be re-implemented in your controller to better suite your application.

See the documentation for set_stamper and reset_stamper for specific implementation details.

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



19
20
21
22
23
# File 'lib/userstamp.rb', line 19

def self.included(base) # :nodoc:
  base.send           :include, InstanceMethods
  base.before_filter  :set_stamper
  base.after_filter   :reset_stamper
end