Sha256: 58070d64f30e8f2b01f0937212720b41e431966b187f694d1aa4eaaedc947ae3
Contents?: true
Size: 474 Bytes
Versions: 41
Compression:
Stored size: 474 Bytes
Contents
module Para module AttributeField class PasswordField < AttributeField::Base register :password, self def initialize(model, options = {}) options.reverse_merge!(type: 'password', field_type: 'password') super(model, options) end def value_for(instance) nil end def parse_input(params, resource) params[name] = params[name].presence if resource.respond_to?(:"#{name}=") end end end end
Version data entries
41 entries across 41 versions & 1 rubygems