Skip to content

Commit

Permalink
Merge pull request #5645 from BroiSatse/main
Browse files Browse the repository at this point in the history
Removed now obsolete SecretKeyFinder
  • Loading branch information
nashby authored Oct 22, 2024
2 parents 7288464 + b6d64ba commit 5b15bbe
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 5b15bbe

Please sign in to comment.