Files
osem/config/environment.rb
2014-05-12 18:32:26 +02:00

15 lines
365 B
Ruby

# Load the rails application
require File.expand_path('../application', __FILE__)
# Load the configuration file
path = Rails.root.join("config", "config.yml")
begin
CONFIG = YAML.load_file(path)[Rails.env]
rescue Exception
puts "Error while parsing config file #{path}"
CONFIG = Hash.new
end
# Initialize the rails application
Osem::Application.initialize!