From c38afbbeb08a2e25fdcbaed6317a65ea7c1afb45 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 11 Feb 2017 18:19:02 -0500 Subject: [PATCH] Update restful_controller.rb --- app/controllers/api/v2/restful_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/v2/restful_controller.rb b/app/controllers/api/v2/restful_controller.rb index d09f4cc0..417f7bc9 100644 --- a/app/controllers/api/v2/restful_controller.rb +++ b/app/controllers/api/v2/restful_controller.rb @@ -5,7 +5,6 @@ module Api include Pundit include PunditExtra - protect_from_forgery with: :exception snorlax_used_rest! before_action :load_resource, only: [:show, :update, :destroy] @@ -46,7 +45,7 @@ module Api end def current_user - token_user || doorkeeper_user || super + token_user || doorkeeper_user end def load_resource