Class: Para::ModelFieldParsers::Devise
- Inherits:
-
Base
- Object
- Base
- Para::ModelFieldParsers::Devise
show all
- Defined in:
- lib/para/model_field_parsers/devise.rb
Instance Attribute Summary
Attributes inherited from Base
#fields_hash, #model
Instance Method Summary
collapse
Methods inherited from Base
#initialize, register
Instance Method Details
#applicable? ⇒ Boolean
14
15
16
|
# File 'lib/para/model_field_parsers/devise.rb', line 14
def applicable?
fields_hash.key?(:encrypted_password)
end
|
#parse! ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/para/model_field_parsers/devise.rb', line 6
def parse!
hidden_fields.each(&fields_hash.method(:delete))
added_fields.each do |key|
fields_hash[key] = AttributeField::PasswordField.new(model, name: key)
end
end
|