Class: Arara::Tags::TextArea
- Inherits:
-
ActionView::Helpers::Tags::Base
- Object
- ActionView::Helpers::Tags::Base
- Arara::Tags::TextArea
- Includes:
- ActionView::Helpers::Tags::Placeholderable
- Defined in:
- app/components/arara/tags/text_area.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/components/arara/tags/text_area.rb', line 10 def render = @options.stringify_keys add_default_name_and_id() if size = .delete("size") ["cols"], ["rows"] = size.split("x") if size.respond_to?(:split) end ["textarea"] = true ["value"] = .delete("value") { value_before_type_cast } @template_object.template.render(Arara::TextFieldComponent, .symbolize_keys) end |