Sha256: 45976b4fd4a0009d2fd4fe9abc643557046c364bd80a8a6ec8dac36d6de4464d

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

require 'rails/observers/active_model/active_model'


module Audited
  class << self
    attr_accessor :ignored_attributes, :current_user_method, :audit_class

    def store
      Thread.current[:audited_store] ||= {}
    end
  end

  @ignored_attributes = %w(lock_version created_at updated_at created_on updated_on)

  @current_user_method = :current_user
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
audited-4.2.2 lib/audited.rb
audited-4.2.1 lib/audited.rb
audited-4.2.0 lib/audited.rb