Class: IronTrail::Config

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

Constant Summary collapse

DEFAULT_IGNORED_TABLES =
%w[
  schema_migrations
  ar_internal_metadata
  sessions
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



20
21
22
23
24
25
# File 'lib/iron_trail/config.rb', line 20

def initialize
  @enable = true
  @track_by_default = true
  @ignored_tables = DEFAULT_IGNORED_TABLES.dup
  @track_migrations_starting_at_version = nil
end

Instance Attribute Details

#enableObject

Returns the value of attribute enable.



13
14
15
# File 'lib/iron_trail/config.rb', line 13

def enable
  @enable
end

#ignored_tablesObject

Returns the value of attribute ignored_tables.



18
19
20
# File 'lib/iron_trail/config.rb', line 18

def ignored_tables
  @ignored_tables
end

#track_by_defaultObject

Returns the value of attribute track_by_default.



13
14
15
# File 'lib/iron_trail/config.rb', line 13

def track_by_default
  @track_by_default
end

#track_migrations_starting_at_versionObject

Returns the value of attribute track_migrations_starting_at_version.



13
14
15
# File 'lib/iron_trail/config.rb', line 13

def track_migrations_starting_at_version
  @track_migrations_starting_at_version
end