Sha256: ce5691557919087c76a1aee42379508fab796c02e779c73e20ebadc63f21598a

Contents?: true

Size: 437 Bytes

Versions: 8

Compression:

Stored size: 437 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
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
para-0.7.3.p4 lib/para/attribute_field/password.rb
para-0.7.3.p3 lib/para/attribute_field/password.rb
para-0.7.3.p2 lib/para/attribute_field/password.rb
para-0.7.3.p1 lib/para/attribute_field/password.rb
para-0.7.3 lib/para/attribute_field/password.rb
para-0.7.2 lib/para/attribute_field/password.rb
para-0.7.1 lib/para/attribute_field/password.rb
para-0.7.0 lib/para/attribute_field/password.rb