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

- (Config) initialize



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

- (Object) enabled

Returns the value of attribute enabled



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

def enabled
  @enabled
end

- (Object) serializer

Returns the value of attribute serializer



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

def serializer
  @serializer
end

- (Object) timestamp_field

Returns the value of attribute timestamp_field



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

def timestamp_field
  @timestamp_field
end

- (Object) version_limit

Returns the value of attribute version_limit



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

def version_limit
  @version_limit
end