Sha256: 6b102f3c57b7d95ad57db6c62552220ceb840cf496edf0f9b02fc76aede5af32
Contents?: true
Size: 626 Bytes
Versions: 4
Compression:
Stored size: 626 Bytes
Contents
module AttachmentMagick class ActiveRecordImage < ActiveRecord::Base set_table_name "amagick_images" belongs_to :imageable, :polymorphic => true image_accessor :photo attr_accessor :file_name #not implemented yet auto_html_for :source => "_to_html" do youtube(:width => 620, :height => 465) vimeo(:width => 620, :height => 465) end auto_html_for :source => "_to_image" do youtube_image vimeo_image(:size => :large) end #not implemented yet def is_flash? false end end if AttachmentMagick.configuration.orms.include?("ActiveRecord") end
Version data entries
4 entries across 4 versions & 1 rubygems