Sha256: ee2befe471bd87d6b4998a5287474442e2e8178ce44db0b963912055263b1622

Contents?: true

Size: 294 Bytes

Versions: 57

Compression:

Stored size: 294 Bytes

Contents

module HoboFields
  module Types
    class PasswordString < String

      COLUMN_TYPE = :string

      HoboFields.register_type(:password, self)

      def to_html(xmldoctype = true)
        I18n.t("hobo.password_hidden", :default => "[password hidden]").html_safe
      end

    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
hobo_fields-1.3.0.RC1 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.RC lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre31 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre29 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre28 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre27 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre26 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre25 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre24 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre23 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre22 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre21 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre20 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre19 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre18 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre16 lib/hobo_fields/types/password_string.rb
hobo_fields-1.3.0.pre15 lib/hobo_fields/types/password_string.rb