module MasterView module Directives class TextArea < MasterView::DirectiveBase metadata :priority => :default, :category => 'form', :description => 'Replaces the element with a textarea input element using the Rails text_area helper.', :element_usage => 'textarea' attr_arg :obj, :quote => true attr_arg :method, :quote => true attr_arg :options, :append_element_attrs => [:common_html] event :element do render erb_content( 'text_area', :obj, :method, :options ) end end end end