Set default secret_key before eager load

This commit is contained in:
Richard Lee
2014-02-25 17:16:59 +08:00
parent 4995d3c221
commit 146a2e500e

View File

@@ -29,7 +29,7 @@ module Devise
end
end
config.after_initialize do |app|
initializer "devise.secret_key" do |app|
if app.respond_to?(:secrets)
Devise.secret_key ||= app.secrets.secret_key_base
elsif app.config.respond_to?(:secret_key_base)