Permalink
Browse files

Adding image model to mongoid in dummy_app

Now tests should pass when ORM is set to mongoid.
  • Loading branch information...
1 parent 1844d56 commit 147a20d59cf2020ea8776bd62539967a39eafcd4 @fernandomm committed Oct 3, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/dummy_app/app/mongoid/image.rb
@@ -0,0 +1,9 @@
+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

0 comments on commit 147a20d

Please sign in to comment.