Sha256: 55dd7f2c21a2c2eb026c75c81c88235ee178cdf9e5667c77ea8d0eeaf61bad6d

Contents?: true

Size: 600 Bytes

Versions: 7

Compression:

Stored size: 600 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 defined? ActiveRecord::Persistence
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
attachment_magick-0.2.6 app/models/attachment_magick/active_record_image.rb
attachment_magick-0.2.5 app/models/attachment_magick/active_record_image.rb
attachment_magick-0.2.4 app/models/attachment_magick/active_record_image.rb
attachment_magick-0.2.3 app/models/attachment_magick/active_record_image.rb
attachment_magick-0.2.2 app/models/attachment_magick/active_record_image.rb
attachment_magick-0.2.1 app/models/attachment_magick/active_record_image.rb
attachment_magick-0.2.0 app/models/attachment_magick/active_record_image.rb