Commit 6b8ca3a1
Changed files (1)
app
services
application
app/services/application/upload_photo.rb
@@ -23,6 +23,6 @@ class UploadPhoto
end
def create_photo!(watermark)
- cake.photos.create!(image_processing: true, watermark: watermark)
+ yield cake.photos.create!(image_processing: true, watermark: watermark)
end
end