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

Version Path
para-0.12.4 lib/para/attribute_field/password.rb
para-0.12.3 lib/para/attribute_field/password.rb
para-0.12.2 lib/para/attribute_field/password.rb
para-0.12.1 lib/para/attribute_field/password.rb
para-0.12.0 lib/para/attribute_field/password.rb
para-0.11.4 lib/para/attribute_field/password.rb
para-0.11.3 lib/para/attribute_field/password.rb
para-0.11.2 lib/para/attribute_field/password.rb
para-0.11.1 lib/para/attribute_field/password.rb
para-0.11.0 lib/para/attribute_field/password.rb
para-0.10.0 lib/para/attribute_field/password.rb
para-0.9.4 lib/para/attribute_field/password.rb
para-0.9.3.3 lib/para/attribute_field/password.rb
para-0.9.3.2 lib/para/attribute_field/password.rb
para-0.9.3.1 lib/para/attribute_field/password.rb
para-0.9.2 lib/para/attribute_field/password.rb
para-0.9.0 lib/para/attribute_field/password.rb
para-0.8.15 lib/para/attribute_field/password.rb
para-0.8.14 lib/para/attribute_field/password.rb
para-0.8.13 lib/para/attribute_field/password.rb