Sha256: 4eb889693b5867968e2e8121c042a01d421ef9e4dd40f6d05ec754033d3a7790
Contents?: true
Size: 428 Bytes
Versions: 28
Compression:
Stored size: 428 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:image_field]=:string def image_field_show(object, attribute) link_to_inline_edit object, attribute, image_tag( object.send(attribute).send(:url) ) end def image_field_edit(object, attribute) file_field_tag attribute, :class => 'input_text_field' end def image_field_update(object, attribute) object.send(attribute.to_s + '=', params[attribute.to_sym]) end
Version data entries
28 entries across 28 versions & 1 rubygems