Update tokens_controller.rb

This commit is contained in:
Connor Turland 2017-02-11 18:21:09 -05:00 committed by GitHub
parent c38afbbeb0
commit ad7830805f

View file

@ -18,6 +18,12 @@ module Api
create_action
respond_with_resource
end
private
def current_user
token_user || doorkeeper_user || super
end
end
end
end