0
0
Fork 0

More query optimizations

This commit is contained in:
Eugen Rochko 2016-11-22 23:18:54 +01:00
parent fc90d38893
commit 5c78547198
5 changed files with 14 additions and 6 deletions

View file

@ -51,6 +51,6 @@ class ApplicationController < ActionController::Base
end
def current_account
current_user.try(:account)
@account ||= current_user.try(:account)
end
end