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.



300
301
302
# File 'lib/devise.rb', line 300

def initialize(name)
  @name = name
end

Instance Method Details

#getObject



304
305
306
# File 'lib/devise.rb', line 304

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