Sha256: 89a460d27ba53bfa3edf633fddfa7c3ebda8f5e6fed7420f17e6a7d1e9172c99
Contents?: true
Size: 426 Bytes
Versions: 63
Compression:
Stored size: 426 Bytes
Contents
# -*- encoding : utf-8 -*- InlineForms::SPECIAL_COLUMN_TYPES[:file_field]=:string def file_field_show(object, attribute) link_to_inline_edit object, attribute, 'xxx' #image_tag( object.send(attribute).send(:url) ) end def file_field_edit(object, attribute) file_field_tag attribute, :class => 'input_text_field' end def file_field_update(object, attribute) object.send(attribute + '=', params[attribute.to_sym]) end
Version data entries
63 entries across 63 versions & 1 rubygems