Sha256: 510f97d9afe8543e47c46238faf81e4153ab700ac123e5e0330db665afb6ad40

Contents?: true

Size: 427 Bytes

Versions: 9

Compression:

Stored size: 427 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)
        params[name] = params[name].presence
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
para-0.6.9 lib/para/attribute_field/password.rb
para-0.6.8 lib/para/attribute_field/password.rb
para-0.6.7 lib/para/attribute_field/password.rb
para-0.6.3 lib/para/attribute_field/password.rb
para-0.6.2 lib/para/attribute_field/password.rb
para-0.5.4 lib/para/attribute_field/password.rb
para-0.5.3 lib/para/attribute_field/password.rb
para-0.5.1 lib/para/attribute_field/password.rb
para-0.5.0 lib/para/attribute_field/password.rb