Sha256: fc03d3b44690ab52e09213dbe0b55db8dd4371e56bb6352ef158075ddd1cda48

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

module ActiveAdminVersioning
  class << self
    attr_writer :configuration

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end
  end


  class Configuration
    attr_accessor :whodunnit_attribute_name

    def initialize
      @whodunnit_attribute_name = :whodunnit
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_admin_versioning-0.3.0 lib/active_admin_versioning/configuration.rb
active_admin_versioning-0.2.3 lib/active_admin_versioning/configuration.rb
active_admin_versioning-0.2.2 lib/active_admin_versioning/configuration.rb
active_admin_versioning-0.2.1 lib/active_admin_versioning/configuration.rb
active_admin_versioning-0.2.0 lib/active_admin_versioning/configuration.rb