Sha256: 722e027596226fac724781968ad3aff307eb950634909e4577944d2a4b4c7c87

Contents?: true

Size: 304 Bytes

Versions: 15

Compression:

Stored size: 304 Bytes

Contents

class Trestle::Form::Fields::PasswordField < Trestle::Form::Fields::FormControl
  def field
    builder.raw_password_field(name, options)
  end

  def defaults
    super.merge(autocomplete: "new-password")
  end
end

Trestle::Form::Builder.register(:password_field, Trestle::Form::Fields::PasswordField)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
trestle-0.10.1 lib/trestle/form/fields/password_field.rb
trestle-0.10.0 lib/trestle/form/fields/password_field.rb
trestle-0.10.0.pre2 lib/trestle/form/fields/password_field.rb
trestle-0.10.0.pre lib/trestle/form/fields/password_field.rb
trestle-0.9.8 lib/trestle/form/fields/password_field.rb
trestle-0.9.7 lib/trestle/form/fields/password_field.rb
trestle-0.9.6 lib/trestle/form/fields/password_field.rb
trestle-0.9.5 lib/trestle/form/fields/password_field.rb
trestle-0.9.4 lib/trestle/form/fields/password_field.rb
trestle-0.9.3 lib/trestle/form/fields/password_field.rb
trestle-0.9.2 lib/trestle/form/fields/password_field.rb
trestle-0.9.1 lib/trestle/form/fields/password_field.rb
trestle-0.9.0 lib/trestle/form/fields/password_field.rb
trestle-0.8.13 lib/trestle/form/fields/password_field.rb
trestle-0.8.12 lib/trestle/form/fields/password_field.rb