Commit 002a04a6

mo khan <mo@mokhan.ca>
2013-12-30 02:23:03
use the fallback image until the image is uploaded to amazon.
1 parent 574ebf5
Changed files (1)
app
models
app/models/photo.rb
@@ -9,7 +9,7 @@ class Photo < ActiveRecord::Base
     {
       :name => read_attribute(:image),
       :url => image.url,
-      :thumbnail_url => is_processed? ? image.thumb.url : image.url,
+      :thumbnail_url => is_processed? ? image.thumb.url : image.thumb.default_url,
       :delete_url => id,
       :delete_type => "DELETE"
     }
@@ -22,6 +22,6 @@ class Photo < ActiveRecord::Base
   private
 
   def is_processed?
-    self.image_processing
+    self.image_processing == nil
   end
 end