Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7 constantize change #5396

Closed
strobilomyces opened this issue Aug 20, 2021 · 1 comment
Closed

Rails 7 constantize change #5396

strobilomyces opened this issue Aug 20, 2021 · 1 comment

Comments

@strobilomyces
Copy link
Contributor

strobilomyces commented Aug 20, 2021

Environment

Ruby 3.0.2p107
rails/main, after: c192feb
Devise 4.8.0 (or master)

Current behavior

Rails app won't boot. Error in lib/devise.rb:316:in get: undefined method constantize for ActiveSupport::Dependencies:Module (NoMethodError)

Explanation: rails/rails#43058

Changing lib/devise.rb:316 as follows fixes the issue:

def get
  - ActiveSupport::Dependencies.constantize(@name)
  + @name.constantize
end

Thanks!

@nickhammond
Copy link
Contributor

Fix in #5397.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants