Initial Rails4 Port

This commit is contained in:
Henne Vogelsang 2014-04-23 15:45:55 +02:00
parent 5923a66a88
commit 2e9b92c3af
19 changed files with 394 additions and 817 deletions

View file

@ -1,8 +1,8 @@
# 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
@ -12,3 +12,4 @@ end
# Initialize the rails application
Osem::Application.initialize!
Osem::Application.config.secret_keybase = CONFIG['secret_key']