class Para::AttributeField::PasswordField
Public Class Methods
Source
# File lib/para/attribute_field/password.rb, line 6 def initialize(model, options = {}) options.reverse_merge!(type: 'password', field_type: 'password') super(model, options) end
Calls superclass method
Para::AttributeField::Base::new
Public Instance Methods
Source
# File lib/para/attribute_field/password.rb, line 15 def parse_input(params, resource) params[name] = params[name].presence if resource.respond_to?(:"#{name}=") end
Source
# File lib/para/attribute_field/password.rb, line 11 def value_for(instance) nil end