* Update devise to latest version
* use letter_opener for mails in development * bring back the flash * fix redirect loop for logging in * move all mailer/devise settings to config/config.yml
This commit is contained in:
parent
7920c3df65
commit
18968a05b1
11 changed files with 53 additions and 16 deletions
|
|
@ -1,5 +1,14 @@
|
|||
# Load the rails application
|
||||
require File.expand_path('../application', __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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue