module OpenShift::Controller::ActionLog

Protected Instance Methods

log_action(*arguments) click to toggle source

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_action_for(login, user_id, *arguments) click to toggle source

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_actions_as(user) click to toggle source

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