finally eliminate no method error when processing a photo

This commit is contained in:
MrZYX 2011-04-02 16:01:54 +02:00
parent a1c3a6dc1e
commit e8b006eadb

View file

@ -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