Sha256: 97c3cdd80dfd3991d86036758fea8ab1c932033558ecbcf13527e381d7b66d1f
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
module Relational module Audit module ControllerMethods module InstanceMethods def self.included(base) base.before_filter :audit_set_changes_by end 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 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relational-audit-1.0.3 | lib/relational/controller_methods.rb |