lib/base_repo.rb
# Log the context of a transaction. Useful for joining to logged_actions table which has no context.
#
# @param user_name [String] the current user's name.
# @param context [String] more context about what led to the action.
# @param route_url [String] the application route that led to the transaction.
# @param request_ip [String] the ip address of the client browser.
Log the context of a transaction. Useful for joining to logged_actions table which has no context.
Log the context of a transaction . Useful for joining to logged_actions table which has no context .
def log_action(user_name: nil, context: nil, route_url: nil, request_ip: nil)
    DB[Sequel[:audit][:logged_action_details]].insert(user_name: user_name,
                                                      context: context,
                                                      route_url: route_url,
                                                      request_ip: request_ip)
  end
def log_action ( user_name : nil , context : nil , route_url : nil , request_ip : nil ) DB [ Sequel [ :audit ] [ :logged_action_details ] ] . insert ( user_name : user_name , context : context , route_url : route_url , request_ip : request_ip ) end
Log the context of a transaction.
Log the context of a transaction .
user_name
the current user's name.
the current user ' s name .
context
more context about what led to the action.
more context about what led to the action .
route_url
the application route that led to the transaction.
the application route that led to the transaction .
request_ip
the ip address of the client browser.
the ip address of the client browser .