More query optimizations
This commit is contained in:
parent
fc90d38893
commit
5c78547198
5 changed files with 14 additions and 6 deletions
|
@ -51,6 +51,6 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def current_account
|
||||
current_user.try(:account)
|
||||
@account ||= current_user.try(:account)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue