mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Initial Rails4 Port
This commit is contained in:
parent
5923a66a88
commit
2e9b92c3af
19 changed files with 394 additions and 817 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue