module Relational::Audit::ControllerMethods::InstanceMethods

Public Class Methods

included(base) click to toggle source
# File lib/relational/controller_methods.rb, line 7
def self.included(base)
  base.before_filter :audit_set_changes_by
end

Public Instance Methods

audit_set_changes_by() click to toggle source
# File lib/relational/controller_methods.rb, line 11
def audit_set_changes_by
  ::Relational::Audit.audit_changes_by = current_user if defined? current_user
  ::Relational::Audit.audit_transaction_id = SecureRandom.hex(10)
end