Sha256: e714fa592d800f884c39a5edb82e999fcd2c9fbe8e42b98cf10cb4f7efa27ab8

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
media_magick-0.2.0 spec/dummy/app/models/post.rb
media_magick-0.1.1 spec/dummy/app/models/post.rb