Sha256: dfd8dbdfbb692d08d41f2f32ae484213d8bf6acd889465bb7716deda5cb3859a

Contents?: true

Size: 469 Bytes

Versions: 9

Compression:

Stored size: 469 Bytes

Contents

module InlineFormsHelper
    InlineForms::SPECIAL_MIGRATION_TYPES[:text_area]=:text
  # text_area
  def text_area_show(object, attribute, values)
    link_to_inline_edit object, attribute, object.send(attribute), nil
  end
  def text_area_edit(object, attribute, values)
    text_area_tag attribute, object[attribute], :class => 'field_text_area'
  end
  def text_area_update(object, attribute, values)
    object[attribute.to_sym] = params[attribute.to_sym]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
inline_forms-0.7.2 app/helpers/form_elements/text_area.rb
inline_forms-0.7.1 app/helpers/form_elements/text_area.rb
inline_forms-0.7.0 app/helpers/form_elements/text_area.rb
inline_forms-0.6.5 app/helpers/form_elements/text_area.rb
inline_forms-0.6.4 app/helpers/form_elements/text_area.rb
inline_forms-0.6.3 app/helpers/form_elements/text_area.rb
inline_forms-0.6.2 app/helpers/form_elements/text_area.rb
inline_forms-0.6.1 app/helpers/form_elements/text_area.rb
inline_forms-0.6.0 app/helpers/form_elements/text_area.rb