mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-01 21:21:02 -05:00
Removed rescue in a controller
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user