Sha256: b9b2dd7de2218e15864e133f8972bfa2a9ac115d18b25a47fa958800d2c61a42
Contents?: true
Size: 448 Bytes
Versions: 193
Compression:
Stored size: 448 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:money_field]=:integer def money_field_show(object, attribute) link_to_inline_edit object, attribute, humanized_money_with_symbol(object.send attribute) 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
193 entries across 193 versions & 1 rubygems