From efa08adf4ee9c02e8bca48bee6dd5139b45b37b9 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Sun, 14 Dec 2014 21:01:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E7=94=A8=E6=99=AE=E9=80=9A?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/mobile/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/mobile/api.rb b/app/api/mobile/api.rb index d3fe414a4..8a64673e0 100644 --- a/app/api/mobile/api.rb +++ b/app/api/mobile/api.rb @@ -12,7 +12,7 @@ module Mobile end def authenticate! - error!('Unauthorized. Invalid or expired token.', 401) unless current_user + raise 'Unauthorized. Invalid or expired token.' unless current_user end def current_user