Avoid dynamic methods due to processing speed (#2080)
This commit is contained in:
parent
880590ad0d
commit
e2a1b574ab
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ class ApiController < ApplicationController
|
|||
end
|
||||
|
||||
def current_user
|
||||
super || current_resource_owner
|
||||
current_resource_owner || super
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue