Sha256: cba05e4f617e81808b51877bae914e21c5fe34869e312a0c87846bd693c9c09b
Contents?: true
Size: 552 Bytes
Versions: 141
Compression:
Stored size: 552 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:decimal_field]=:string def decimal_field_show(object, attribute) link_to_inline_edit object, attribute, object[attribute].nil? ? "<i class='fi-plus'></i>".html_safe : object[attribute] end def decimal_field_edit(object, attribute) text_field_tag attribute, (object.send attribute.to_sym), :class => 'input_decimal_field' # for abide: , :required => true end def decimal_field_update(object, attribute) object.send :write_attribute, attribute.to_sym, params[attribute.to_sym] end
Version data entries
141 entries across 141 versions & 1 rubygems