Skip to content

Commit

Permalink
Removed now obsolete SecretKeyFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
BroiSatse committed Oct 26, 2023
1 parent e2242a9 commit b6d64ba
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 150 deletions.
1 change: 0 additions & 1 deletion lib/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module Devise
autoload :TestHelpers, 'devise/test_helpers'
autoload :TimeInflector, 'devise/time_inflector'
autoload :TokenGenerator, 'devise/token_generator'
autoload :SecretKeyFinder, 'devise/secret_key_finder'

module Controllers
autoload :Helpers, 'devise/controllers/helpers'
Expand Down
2 changes: 1 addition & 1 deletion lib/devise/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Engine < ::Rails::Engine
end

initializer "devise.secret_key" do |app|
Devise.secret_key ||= Devise::SecretKeyFinder.new(app).find
Devise.secret_key ||= app.secret_key_base

Devise.token_generator ||=
if secret_key = Devise.secret_key
Expand Down
27 changes: 0 additions & 27 deletions lib/devise/secret_key_finder.rb

This file was deleted.

121 changes: 0 additions & 121 deletions test/secret_key_finder_test.rb

This file was deleted.

0 comments on commit b6d64ba

Please sign in to comment.