app/controllers/application_controller.rb
def log_action( action_performed, action_description )
    user = current_user()
    user = user ? user.get_full_name : '(user not logged in yet)'
    logger.info("[*I*]- ACTION: '#{action_performed}' by #{user}: #{action_description}.")
                                                  # Send a message to the developers anyway:
    begin
      AgexMailer.action_notify_mail( user, action_performed, action_description ).deliver
      logger.info("[*I*]- action-notify e-mail allegedly sent.")
    rescue
      logger.warn( '[W!]-- Unable to send out action-notify mail message, Mailer not responding or not configured properly yet.' )
    end
  end
# Sends out an e-mail to notify the developers of important actions by the users
# taking place during app usage.
#
Sends out an e-mail to notify the developers of important actions by the users
taking place during app usage.
Sends out an e - mail to notify the developers of important actions by the users taking place during app usage .
def log_action( action_performed, action_description )
    user = current_user()
    user = user ? user.get_full_name : '(user not logged in yet)'
    logger.info("[*I*]- ACTION: '#{action_performed}' by #{user}: #{action_description}.")
    begin
      AgexMailer.action_notify_mail( user, action_performed, action_description ).deliver
      logger.info("[*I*]- action-notify e-mail allegedly sent.")
    rescue
      logger.warn( '[W!]-- Unable to send out action-notify mail message, Mailer not responding or not configured properly yet.' )
    end
  end
def log_action ( action_performed , action_description ) user = current_user ( ) user = user ? user . get_full_name : '(user not logged in yet)' logger . info ( "[*I*]- ACTION: '#{action_performed}' by #{user}: #{action_description}." ) begin AgexMailer . action_notify_mail ( user , action_performed , action_description ) . deliver logger . info ( "[*I*]- action-notify e-mail allegedly sent." ) rescue logger . warn ( '[W!]-- Unable to send out action-notify mail message, Mailer not responding or not configured properly yet.' ) end end
Sends out an e-mail to notify the developers of important actions by the users
taking place during app usage.
Sends out an e - mail to notify the developers of important actions by the users taking place during app usage .
# Send a message to the developers anyway:
action_performed
action_description