module Ddb::Controller::Userstamp::InstanceMethods
Private Instance Methods
reset_stamper()
click to toggle source
The reset_stamper
method as implemented here assumes that a User
model is being used as the stamper. If this is not the case then you will need to manually add your own implementation of this method to the private section of the controller where you are including the Userstamp
module.
# File lib/userstamp.rb, line 43 def reset_stamper User.reset_stamper end
set_stamper()
click to toggle source
The set_stamper
method as implemented here assumes a couple of things. First, that you are using a User
model as the stamper and second that your controller has a current_user
method that contains the currently logged in stamper. If either of these are not the case in your application you will want to manually add your own implementation of this method to the private section of the controller where you are including the Userstamp
module.
# File lib/userstamp.rb, line 34 def set_stamper User.stamper = self.current_user end