Update restful_controller.rb

This commit is contained in:
Connor Turland 2017-02-11 18:19:02 -05:00 committed by GitHub
parent 1374da35da
commit c38afbbeb0

View file

@ -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