Module: UserActionsLogger

Extended by:
ActiveSupport::Concern
Defined in:
lib/user_actions_logger.rb

Instance Method Summary collapse

Instance Method Details

#watch_forObject



13
14
15
# File 'lib/user_actions_logger.rb', line 13

def watch_for
  'override this method(watch_for) in you controller. Read the doc!'
end

#what_didObject



25
26
27
# File 'lib/user_actions_logger.rb', line 25

def what_did
  params[:action]
end

#where_didObject



21
22
23
# File 'lib/user_actions_logger.rb', line 21

def where_did
  controller_name.classify
end

#who_did_itObject



17
18
19
# File 'lib/user_actions_logger.rb', line 17

def who_did_it
  current_user.to_json
end