Commit d0101466

mo k <mo@mokhan.ca>
2012-11-06 14:31:48
update the check to see if we should replay with the original image or thumb.
1 parent 486cda5
Changed files (1)
app
models
app/models/photo.rb
@@ -7,7 +7,7 @@ class Photo < ActiveRecord::Base
 
   include Rails.application.routes.url_helpers
   def to_jq_upload
-    if image.thumb.url
+    if image.thumb.url && image.thumb.url != image.thumb.default_url
       {
         "name" => read_attribute(:image),
         "size" => image.size,