Log an action for the current user
# File lib/openshift/controller/action_log.rb, line 20 def log_action(*arguments) OpenShift::UserActionLog.action(*arguments) end
Log an action for a user who has not been authenticated yet. Will override any previous call to log_actions_as.
# File lib/openshift/controller/action_log.rb, line 13 def log_action_for(login, user_id, *arguments) OpenShift::UserActionLog.with_user(user_id, login) OpenShift::UserActionLog.action(*arguments) end
Log subsequent actions as the given user
# File lib/openshift/controller/action_log.rb, line 27 def log_actions_as(user) OpenShift::UserActionLog.with_user(user.id, user.login) end
# File lib/openshift/controller/action_log.rb, line 32 def set_logged_request OpenShift::UserActionLog.begin_request(request) yield ensure OpenShift::UserActionLog.end_request end