Sha256: 0ad49bb206d10efdcec11cd5648ef874be9f4ef7771d84116f81d98358fd53a5

Contents?: true

Size: 355 Bytes

Versions: 10

Compression:

Stored size: 355 Bytes

Contents

require 'singleton'

module PaperTrail
  class Config
    include Singleton
    attr_accessor :enabled, :timestamp_field, :serializer, :version_limit

    def initialize
      @enabled         = true # Indicates whether PaperTrail is on or off.
      @timestamp_field = :created_at
      @serializer      = PaperTrail::Serializers::YAML
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
paper_trail-3.0.9 lib/paper_trail/config.rb
paper_trail-3.0.8 lib/paper_trail/config.rb
paper_trail-3.0.7 lib/paper_trail/config.rb
paper_trail-3.0.6 lib/paper_trail/config.rb
paper_trail-3.0.5 lib/paper_trail/config.rb
paper_trail-3.0.2 lib/paper_trail/config.rb
paper_trail-3.0.1 lib/paper_trail/config.rb
paper_trail-3.0.0 lib/paper_trail/config.rb
paper_trail-3.0.0.rc2 lib/paper_trail/config.rb
paper_trail-3.0.0.rc1 lib/paper_trail/config.rb