Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding image model to mongoid in dummy_app

Now tests should pass when ORM is set to mongoid.
  • Loading branch information...
commit 147a20d59cf2020ea8776bd62539967a39eafcd4 1 parent 1844d56
@fernandomm authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/dummy_app/app/mongoid/image.rb
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.