Remove duplicate current_user method
This commit is contained in:
parent
1f3ba2307f
commit
6756c24896
1 changed files with 0 additions and 7 deletions
|
|
@ -27,7 +27,6 @@ module Api::V1
|
|||
# before returning
|
||||
def current_user
|
||||
@current_user ||= User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
|
||||
@current_user.update_last_ip_and_last_seen!(request.remote_ip) if @current_user
|
||||
|
||||
return @current_user
|
||||
end
|
||||
|
|
@ -43,12 +42,6 @@ module Api::V1
|
|||
set_content_type("application/javascript; charset=utf-8")
|
||||
end
|
||||
|
||||
def current_user
|
||||
@current_user ||= User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
|
||||
|
||||
return @current_user
|
||||
end
|
||||
|
||||
### Error response methods
|
||||
def render_unprocessable_entity_response(exception)
|
||||
@exception = exception
|
||||
|
|
|
|||
Loading…
Reference in a new issue