Module: UserActionsLogger
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/user_actions_logger.rb
Instance Method Summary collapse
Instance Method Details
#watch_for ⇒ Object
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_did ⇒ Object
25 26 27 |
# File 'lib/user_actions_logger.rb', line 25 def what_did params[:action] end |
#where_did ⇒ Object
21 22 23 |
# File 'lib/user_actions_logger.rb', line 21 def where_did controller_name.classify end |
#who_did_it ⇒ Object
17 18 19 |
# File 'lib/user_actions_logger.rb', line 17 def who_did_it current_user.to_json end |