Class: Believer::Environment::RailsEnv

Inherits:
BaseEnv
  • Object
show all
Defined in:
lib/believer/environment/rails_env.rb

Instance Method Summary collapse

Methods inherited from BaseEnv

#configuration, #configuration=, #connection_configuration, #create_connection, #create_keyspace, #initialize

Constructor Details

This class inherits a constructor from Believer::Environment::BaseEnv

Instance Method Details

#load_configurationObject



6
7
8
9
10
11
12
13
# File 'lib/believer/environment/rails_env.rb', line 6

def load_configuration
  config_file = Rails.root + "config/believer.yml"
  config = YAML::load(File.open(config_file.to_s))
  env_config = config[Rails.env]
  env_config = {}.merge(env_config).symbolize_keys
  env_config[:logger] = Rails.logger
  env_config
end