Sha256: 2f49023ec8560b70f752711630ecc9a6eae3be11e9770a83b16e3457bb310a4c

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

class Album
  include Mongoid::Document
  include MediaMagick::Model

  embeds_many :tracks

  attaches_many :photos
  attaches_many :files, :relation => :referenced, type: 'file'
  attaches_many :compound_name_files

  attaches_many :images do
    field :tags, type: Array
  end

  attaches_many :pictures, uploader: PictureUploader

  attaches_many :photos_and_videos, as: 'photo', uploader: PictureUploader, allow_videos: true
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
media_magick-0.4.1 spec/dummy/app/models/album.rb
media_magick-0.4.0 spec/dummy/app/models/album.rb
media_magick-0.3.3 spec/dummy/app/models/album.rb
media_magick-0.3.2 spec/dummy/app/models/album.rb
media_magick-0.3.0 spec/dummy/app/models/album.rb
media_magick-0.2.0 spec/dummy/app/models/album.rb
media_magick-0.1.1 spec/dummy/app/models/album.rb