Class: MergeDb::Configuration
- Inherits:
-
Object
- Object
- MergeDb::Configuration
- Defined in:
- lib/merge_db/configuration.rb
Class Attribute Summary collapse
-
.scope_name ⇒ Object
Returns the value of attribute scope_name.
-
.scoped_tables ⇒ Object
Returns the value of attribute scoped_tables.
Class Method Summary collapse
Class Attribute Details
.scope_name ⇒ Object
Returns the value of attribute scope_name.
4 5 6 |
# File 'lib/merge_db/configuration.rb', line 4 def scope_name @scope_name end |
.scoped_tables ⇒ Object
Returns the value of attribute scoped_tables.
4 5 6 |
# File 'lib/merge_db/configuration.rb', line 4 def scoped_tables @scoped_tables end |
Class Method Details
.database ⇒ Object
10 11 12 13 |
# File 'lib/merge_db/configuration.rb', line 10 def database require 'erb' YAML::load(ERB.new(IO.read('./config/database.yml')).result) end |