summaryrefslogtreecommitdiff
path: root/app/controllers/gui_functions_controller.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-29 16:44:47 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-29 16:44:47 +0100
commit75fb68c4d1eb647a268890c080da2dc3875c0e77 (patch)
treec3e20c251a4d065475e8f6d685a14b669a09bbe4 /app/controllers/gui_functions_controller.rb
parenta9be92fdc62d55e6b6a8da80f0fe959ad90fa678 (diff)
Get rid of @current_user. The use of current_user is better.
Diffstat (limited to 'app/controllers/gui_functions_controller.rb')
-rw-r--r--app/controllers/gui_functions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/gui_functions_controller.rb b/app/controllers/gui_functions_controller.rb
index 0cb7898..4b57322 100644
--- a/app/controllers/gui_functions_controller.rb
+++ b/app/controllers/gui_functions_controller.rb
@@ -58,7 +58,7 @@ class GuiFunctionsController < ApplicationController
private
def load_user_groups
- @user_groups = Tenant.find(@current_user.current_tenant).user_groups.order(:position)
+ @user_groups = Tenant.find(current_user.current_tenant).user_groups.order(:position)
end
def spread_breadcrumbs