diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-29 16:44:47 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-29 16:44:47 +0100 |
commit | 75fb68c4d1eb647a268890c080da2dc3875c0e77 (patch) | |
tree | c3e20c251a4d065475e8f6d685a14b669a09bbe4 /app/controllers/softkeys_controller.rb | |
parent | a9be92fdc62d55e6b6a8da80f0fe959ad90fa678 (diff) |
Get rid of @current_user. The use of current_user is better.
Diffstat (limited to 'app/controllers/softkeys_controller.rb')
-rw-r--r-- | app/controllers/softkeys_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/softkeys_controller.rb b/app/controllers/softkeys_controller.rb index d2a2bb9..8f363cd 100644 --- a/app/controllers/softkeys_controller.rb +++ b/app/controllers/softkeys_controller.rb @@ -61,7 +61,7 @@ class SoftkeysController < ApplicationController @softkey_functions = [] SoftkeyFunction.accessible_by(current_ability, :read).each do |softkey_function| - if GuiFunction.display?("softkey_function_#{softkey_function.name.downcase}_field_in_softkey_form", @current_user) + if GuiFunction.display?("softkey_function_#{softkey_function.name.downcase}_field_in_softkey_form", current_user) @softkey_functions << softkey_function end end |