diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 13:29:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 13:29:53 +0000 |
commit | b9f45c80c655f56998b869d86d8962ef4bb0784a (patch) | |
tree | 02b0a767e1eeccaebc1cfba902766be93a721001 /app | |
parent | e9689f5fe32666b238a1a634d385399bb9a3f025 (diff) | |
download | redmine-b9f45c80c655f56998b869d86d8962ef4bb0784a.tar.gz redmine-b9f45c80c655f56998b869d86d8962ef4bb0784a.zip |
Code cleanup (#14766).
Patch by Daniel Felix.
git-svn-id: http://svn.redmine.org/redmine/trunk@12658 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/my_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 1e67b7564..ac249b47e 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -139,7 +139,7 @@ class MyController < ApplicationController @blocks = @user.pref[:my_page_layout] || DEFAULT_LAYOUT.dup @block_options = [] BLOCKS.each do |k, v| - unless %w(top left right).detect {|f| (@blocks[f] ||= []).include?(k)} + unless @blocks.values.flatten.include?(k) @block_options << [l("my.blocks.#{v}", :default => [v, v.to_s.humanize]), k.dasherize] end end |