class Devise::Getter
Public Class Methods
new(name)
click to toggle source
# File lib/devise.rb, line 318 def initialize(name) @name = name end
Public Instance Methods
get()
click to toggle source
# File lib/devise.rb, line 322 def get # TODO: Remove AS::Dependencies usage when dropping support to Rails < 7. if ActiveSupport::Dependencies.respond_to?(:constantize) ActiveSupport::Dependencies.constantize(@name) else @name.constantize end end