From 9fcc103e15a4593c81574c7fda003fb84f75a642 Mon Sep 17 00:00:00 2001 From: Coleman Date: Sat, 11 Oct 2008 17:36:58 -0500 Subject: [PATCH] wrong exception --- app/controllers/photos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/photos.rb b/app/controllers/photos.rb index 2274de1..a1ed74a 100644 --- a/app/controllers/photos.rb +++ b/app/controllers/photos.rb @@ -34,7 +34,7 @@ class Photos < Application end def delete - raise NotAllowed unless request.xhr? + raise NotAcceptable unless request.xhr? if current_user and current_user.administrator? render else