Module: UserStamp::AppController

Defined in:
lib/user_stamp/app_controller.rb

Instance Method Summary collapse

Instance Method Details

#set_user_stampObject

Called by the main application using a :before_filter



33
34
35
36
# File 'lib/user_stamp/app_controller.rb', line 33

def set_user_stamp
  # use the current_user configuration as an object within the main app
  User.current = self.send(UserStamp.configuration.current_user)
end