Sha256: e604abbe9cb4e2ada61fcb3bcd1dd3be12ac9a5186b789a83032629aab869edc

Contents?: true

Size: 231 Bytes

Versions: 12

Compression:

Stored size: 231 Bytes

Contents

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

  attr_accessible :file

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
rails_admin-0.4.9 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.8 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.7 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.6 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.5 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.4 spec/dummy_app/app/mongoid/image.rb
rails_admin-lbgraham-0.4.2 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.3 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.2 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.1 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.4.0 spec/dummy_app/app/mongoid/image.rb
rails_admin-0.3.0 spec/dummy_app/app/mongoid/image.rb