From faed8b019e96ae06fa7c7223cdfdd6560f9da84f Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 18 Nov 2017 16:51:25 +1300 Subject: [PATCH] Removed rescue in a controller --- app/controllers/photos_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index 3703557d2..5c8dedfd1 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -37,9 +37,6 @@ class PhotosController < ApplicationController raise "Could not find this item owned by you" unless @item collection << @item unless collection.include?(@item) @photo.save! if @photo.present? - rescue => e - flash[:alert] = e.message - ensure respond_with @photo end