Sha256: 87b90e87692c7ba20305e8e97db99524bcacbf69d3b1f38ad98704c33683bd25

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

class Post
  include Mongoid::Document
  include MediaMagick::Model

  field :title, :type => String
  field :text,  :type => String

  attaches_many :files,  :type => 'file'
  attaches_many :images, :type => 'image', :uploader => PostUploader, :allow_videos => true
  attaches_many :just_videos, :type => 'image', :uploader => PostUploader, :allow_videos => true
end

Version data entries

5 entries across 5 versions & 1 rubygems

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