spec/dummy/app/models/album.rb in media_magick-0.0.1 vs spec/dummy/app/models/album.rb in media_magick-0.1.0

- old
+ new

@@ -1,14 +1,16 @@ class Album include Mongoid::Document include MediaMagick::Model - attachs_many :photos - attachs_many :files - attachs_many :compound_name_files + embeds_many :tracks - attachs_many :images do + attaches_many :photos + attaches_many :files, :relation => :referenced + attaches_many :compound_name_files + + attaches_many :images do field :tags, type: Array end - attachs_many :pictures, uploader: PictureUploader + attaches_many :pictures, uploader: PictureUploader end