Sha256: 11f9af8c0f0213d58e2aa79bcbdb25bac3b574399d6032723f23714f164185bd
Contents?: true
Size: 401 Bytes
Versions: 57
Compression:
Stored size: 401 Bytes
Contents
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
57 entries across 57 versions & 1 rubygems