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

- old
+ new

@@ -3,14 +3,16 @@ include MediaMagick::Model embeds_many :tracks attaches_many :photos - attaches_many :files, :relation => :referenced + 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