Sha256: 0ad1d175930a988263a304def0fe7e425a2dca71f91003b3130ecc269fbaa1af

Contents?: true

Size: 194 Bytes

Versions: 2

Compression:

Stored size: 194 Bytes

Contents

class Article
  include Mongoid::Document
  include Uploader::Fileuploads

  field :content
  field :title
  
  has_one :picture, as: :assetable, dependent: :destroy

  fileuploads :picture
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glebtv-rails-uploader-0.4.1 spec/dummy/app/models/article.rb
glebtv-rails-uploader-0.4.0 spec/dummy/app/models/article.rb