Removed rescue in a controller

This commit is contained in:
Brenda Wallace
2017-11-18 16:51:25 +13:00
committed by Shiny
parent c8974a869f
commit faed8b019e

View File

@@ -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