Class: PaperTrail::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/paper_trail/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig



8
9
10
11
12
# File 'lib/paper_trail/config.rb', line 8

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

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled



6
7
8
# File 'lib/paper_trail/config.rb', line 6

def enabled
  @enabled
end

#serializerObject

Returns the value of attribute serializer



6
7
8
# File 'lib/paper_trail/config.rb', line 6

def serializer
  @serializer
end

#timestamp_fieldObject

Returns the value of attribute timestamp_field



6
7
8
# File 'lib/paper_trail/config.rb', line 6

def timestamp_field
  @timestamp_field
end

#version_limitObject

Returns the value of attribute version_limit



6
7
8
# File 'lib/paper_trail/config.rb', line 6

def version_limit
  @version_limit
end