Module: Elastic::Textarea::FormHelper

Defined in:
lib/elastic-textarea/form_helper.rb

Instance Method Summary collapse

Instance Method Details

#elastic_text_area(object_name, method, options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/elastic-textarea/form_helper.rb', line 4

def elastic_text_area(object_name, method, options = {})
  options.merge!({:class => "elastic"}) { |key, v1, v2| "#{v1} #{v2}" }
  options.merge!({:rows => 5}) { |key, v1, v2| v1 }
  text_area(object_name, method, options)
end