Module: Devise::Models::StormpathAuthenticatable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise/models/stormpath_authenticatable.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.required_fields(klass) ⇒ Object
9 10 11 |
# File 'lib/devise/models/stormpath_authenticatable.rb', line 9 def self.required_fields(klass) [:current_password, :password, :password_confirmation] end |
Instance Method Details
#active_for_authentication? ⇒ Boolean
19 20 21 |
# File 'lib/devise/models/stormpath_authenticatable.rb', line 19 def active_for_authentication? super && !%w{DISABLED LOCKED}.include?(status) end |