Fix linting cops

This commit is contained in:
Artem Chernikov 2014-07-21 14:42:58 +02:00
parent 056fe5ec3f
commit 31212b4f1c
4 changed files with 6 additions and 6 deletions

View file

@ -52,8 +52,8 @@ class EventAttachmentsController < ApplicationController
if !organizer_or_admin?
begin
event = current_user.events.find(params[:proposal_id])
rescue => e
current_user.events.find(params[:proposal_id])
rescue
# They certainly aren't allowed to attach a file to someone else's proposal
raise ActionController::RoutingError.new('Invalid proposal')
end