Sha256: 954fd1d95a4517a5724e80453f8ff663e11ebff1f0d97ca46a96842100a8d4d9

Contents?: true

Size: 379 Bytes

Versions: 13

Compression:

Stored size: 379 Bytes

Contents

InlineForms::SPECIAL_COLUMN_TYPES[:text_area]=:text

def text_area_show(object, attribute)
  link_to_inline_edit object, attribute, object.send(attribute)
end

def text_area_edit(object, attribute)
  text_area_tag attribute, object[attribute], :class => 'attribute_text_area'
end

def text_area_update(object, attribute)
  object[attribute.to_sym] = params[attribute.to_sym]
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
inline_forms-0.9.5 app/helpers/form_elements/text_area.rb
inline_forms-0.9.4 app/helpers/form_elements/text_area.rb
inline_forms-0.9.3 app/helpers/form_elements/text_area.rb
inline_forms-0.9.2 app/helpers/form_elements/text_area.rb
inline_forms-0.9.1 app/helpers/form_elements/text_area.rb
inline_forms-0.9.0 app/helpers/form_elements/text_area.rb
inline_forms-0.8.6 app/helpers/form_elements/text_area.rb
inline_forms-0.8.5 app/helpers/form_elements/text_area.rb
inline_forms-0.8.4 app/helpers/form_elements/text_area.rb
inline_forms-0.8.3 app/helpers/form_elements/text_area.rb
inline_forms-0.8.2 app/helpers/form_elements/text_area.rb
inline_forms-0.8.1 app/helpers/form_elements/text_area.rb
inline_forms-0.8.0 app/helpers/form_elements/text_area.rb