Module: ActiveRecord::Userstamp::ControllerAdditions
- Defined in:
- lib/active_record/userstamp/controller_additions.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
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
9 10 11 12 13 |
# File 'lib/active_record/userstamp/controller_additions.rb', line 9 def self.included(base) # :nodoc: base.send :include, InstanceMethods base.before_filter :set_stamper base.after_filter :reset_stamper end |