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