Sha256: 7e387f534c34b89961e1fca15ff3dadd08928d9537ed2aad9cdeca4b9f2c0c7c

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

class Image
  include Mongoid::Document
  include Mongoid::Paperclip

  has_mongoid_attached_file :file, :styles => { :medium => "300x300>", :thumb => "100x100>" }
  validates_attachment_presence :file
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin-0.6.0 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.5.0 spec/dummy_app/app/mongoid/image.rb