From e8b006eadb651a365110f6b7cccf22ace55638d5 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Sat, 2 Apr 2011 16:01:54 +0200 Subject: [PATCH] finally eliminate no method error when processing a photo --- app/models/photo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/photo.rb b/app/models/photo.rb index b125bcf62..aa8155108 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -101,7 +101,7 @@ class Photo < Post end def process - return false if self.processed? || unprocessed_image.path.include?('.gif') + return false if self.processed? || (!unprocessed_image.path.nil? &&unprocessed_image.path.include?('.gif')) processed_image.store!(unprocessed_image) #Ultra naive save! end