Class: IronTrail::Config
- Inherits:
-
Object
- Object
- IronTrail::Config
- 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
-
#enable ⇒ Object
Returns the value of attribute enable.
-
#ignored_tables ⇒ Object
Returns the value of attribute ignored_tables.
-
#track_by_default ⇒ Object
Returns the value of attribute track_by_default.
-
#track_migrations_starting_at_version ⇒ Object
Returns the value of attribute track_migrations_starting_at_version.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#enable ⇒ Object
Returns the value of attribute enable.
13 14 15 |
# File 'lib/iron_trail/config.rb', line 13 def enable @enable end |
#ignored_tables ⇒ Object
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_default ⇒ Object
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_version ⇒ Object
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 |