Skip to content

Commit

Permalink
Fix deprecated ActiveSupport::Dependencies.constantize (#5397)
Browse files Browse the repository at this point in the history
Changes deprecated `ActiveSupport::Dependencies.constantize(model_name)` to `model_name.constantize`

Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
  • Loading branch information
strobilomyces and carlosantoniodasilva committed Oct 7, 2021
1 parent b39faff commit a0ccc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise.rb
Expand Up @@ -313,7 +313,7 @@ def initialize(name)
end

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

Expand Down

0 comments on commit a0ccc1c

Please sign in to comment.