summaryrefslogtreecommitdiffstats
path: root/app/controllers/settings_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-01 07:19:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-01 07:19:11 +0000
commitef988ba17cde0fef14d59be0df26bd068769b5ee (patch)
treea0a2a6c5f69d811d9e4be7e957baeee30e2ebdcb /app/controllers/settings_controller.rb
parenta29854707b30d74f43b448f288c7663cbd6066d3 (diff)
downloadredmine-ef988ba17cde0fef14d59be0df26bd068769b5ee.tar.gz
redmine-ef988ba17cde0fef14d59be0df26bd068769b5ee.zip
code cleanup r10542 changes (#10937)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10544 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/settings_controller.rb')
-rw-r--r--app/controllers/settings_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb
index e3387e400..b27582671 100644
--- a/app/controllers/settings_controller.rb
+++ b/app/controllers/settings_controller.rb
@@ -40,7 +40,7 @@ class SettingsController < ApplicationController
else
@options = {}
user_format = User::USER_FORMATS.collect{|key, value| [key, value[:setting_order]]}.sort{|a, b| a[1] <=> b[1]}
- @options[:user_format] = user_format.collect{|v| v[0]}.collect{|f| [User.current.name(f), f.to_s]}
+ @options[:user_format] = user_format.collect{|f| [User.current.name(f[0]), f[0].to_s]}
@deliveries = ActionMailer::Base.perform_deliveries
@guessed_host_and_path = request.host_with_port.dup