Module: UserActionsLogger
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/user_actions_logger.rb
Instance Method Summary collapse
Instance Method Details
#watch_for ⇒ Object
11 12 13 |
# File 'lib/user_actions_logger.rb', line 11 def watch_for 'override this method(watch_for) in you controller. Read the doc!' end |
#what_did ⇒ Object
23 24 25 |
# File 'lib/user_actions_logger.rb', line 23 def what_did params[:action] end |
#where_did ⇒ Object
19 20 21 |
# File 'lib/user_actions_logger.rb', line 19 def where_did controller_name.classify end |
#who_did_it ⇒ Object
15 16 17 |
# File 'lib/user_actions_logger.rb', line 15 def who_did_it current_user.to_json end |