Sha256: 79777932c7b549c3602f4b7e634cb9861f9a2e49b5a2d4b806aad04b8d39c856

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

module MasterView
  module Directives

    class PasswordField < MasterView::DirectiveBase

      metadata :priority => :default,
        :category => 'form',
        :description => 'Replaces the element with a password input element using the Rails password_field helper',
        :element_usage => 'input'

      attr_arg :name, :quote => true
      attr_arg :method, :quote => true
      attr_arg :options, :append_element_attrs => [:common_html]

      event :element do
        render erb_content( 'password_field', :name, :method, :options )
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masterview-0.3.3 lib/masterview/directives/password_field.rb
masterview-0.3.0 lib/masterview/directives/password_field.rb
masterview-0.3.1 lib/masterview/directives/password_field.rb
masterview-0.3.2 lib/masterview/directives/password_field.rb
masterview-0.3.4 lib/masterview/directives/password_field.rb