finally eliminate no method error when processing a photo
This commit is contained in:
parent
a1c3a6dc1e
commit
e8b006eadb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue