Class: MergeDb::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/merge_db/configuration.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.scope_nameObject

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_tablesObject

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

.databaseObject



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