Sha256: 56bd06d1642f045764d2b01933296e1583ba2d994a37a7651fedc35dafe3e6f6
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
module AttachmentMagick class ActiveRecordImage < ActiveRecord::Base set_table_name "amagick_images" belongs_to :imageable, :polymorphic => true image_accessor :photo 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 end if defined? ActiveRecord::Persistence end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attachment_magick-0.1.0 | app/models/attachment_magick/active_record_image.rb |