Sha256: 2756f6eb5c713e6ea9392168731384192c5bafbf89504bdbf2dd1f79414fccae
Contents?: true
Size: 555 Bytes
Versions: 136
Compression:
Stored size: 555 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:integer_field]=:integer def integer_field_show(object, attribute) link_to_inline_edit object, attribute, object[attribute].nil? ? "<i class='fi-plus'></i>".html_safe : object[attribute] end def integer_field_edit(object, attribute) number_field_tag attribute, (object.send attribute.to_sym), :class => 'input_integer_field' # for abide: , :required => true end def integer_field_update(object, attribute) object.send :write_attribute, attribute.to_sym, params[attribute.to_sym] end
Version data entries
136 entries across 136 versions & 1 rubygems