Sha256: 9f5d0332359240f7f1b05e09bd9f443b9f59d69e9bee84299418b02107f4f893
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
module Para module AttributeField class PasswordField < AttributeField::Base 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) params[name] = params[name].presence end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
para-0.4.0 | lib/para/attribute_field/password.rb |