Class: Redshift::Rails::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable, Singleton
Defined in:
lib/redshift/rails/configuration.rb

Instance Method Summary collapse

Instance Method Details

#databaseObject



26
27
28
29
30
31
32
33
34
# File 'lib/redshift/rails/configuration.rb', line 26

def database
  {
    host: host,
    port: port,
    user: user,
    password: password,
    dbname: dbname
  }
end

#load!Object



20
21
22
23
24
# File 'lib/redshift/rails/configuration.rb', line 20

def load!
  resolve_config.each do |k, v|
    send("#{k}=", v)
  end
end