Sha256: 842b895e4b0e6ba524503686b151c3d0b86e37bc036f05117b4beb92599bedc9
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require "ImageClip/version" module ImageClip def self.add_image(table_name, attachment_name) add_column(table_name, "#{attachment_name}_data", :text) add_attachment(table_name, attachment_name) # add code to model for saving end def self.remove_image(table_name, attachment_name) remove_column(table_name, "#{attachment_name}_data") remove_attachment(table_name, attachment_name) # remove code to model for saving end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ImageClip-0.0.1 | lib/ImageClip.rb |