mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
Set default secret_key before eager load
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user