module ImageClip
Constants
- VERSION
Public Class Methods
add_image(table_name, attachment_name)
click to toggle source
# File lib/ImageClip.rb, line 4 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
remove_image(table_name, attachment_name)
click to toggle source
# File lib/ImageClip.rb, line 10 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