We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37da66e commit 8bf0286Copy full SHA for 8bf0286
app/models/spectrum.rb
@@ -283,7 +283,7 @@ def rotate
283
photo.copy_to_local_file(:original,local_photo_path)
284
image = Magick::ImageList.new(local_photo_path)
285
image.rotate!(-90)
286
- image.write('public' + photo.url)
+ image.write(local_photo_path)
287
photo.reprocess!
288
end
289
@@ -292,7 +292,7 @@ def reverse
292
293
294
image.flop!
295
296
self.reversed = !reversed
297
298
@@ -639,4 +639,4 @@ def local_photo_path
639
"/tmp/#{self.id}"
640
641
642
-end
+end
0 commit comments