Sha256: 0765fde877a51f1ef0b3cc1fab5b9106d87476c86189ad903a985e86b55385d1
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:money_field]=:integer def money_field_show(object, attribute) link_to_inline_edit object, attribute.to_sym, humanized_money_with_symbol(object.send attribute.to_sym) end def money_field_edit(object, attribute) text_field_tag attribute, (object.send attribute), :class => 'input_money_field' end def money_field_update(object, attribute) object.send(attribute + "=", params[attribute]) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inline_forms-1.6.5 | lib/app/helpers/form_elements/money_field.rb |