Class: Devise::Getter

Inherits:
Object
  • Object
show all
Defined in:
lib/devise.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Getter

Returns a new instance of Getter.



252
253
254
# File 'lib/devise.rb', line 252

def initialize name
  @name = name
end

Instance Method Details

#getObject



256
257
258
# File 'lib/devise.rb', line 256

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