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
|
end
|
||||||
|
|
||||||
def process
|
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
|
processed_image.store!(unprocessed_image) #Ultra naive
|
||||||
save!
|
save!
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue