Commits

Toshi MARUYAMA  committed fe30c4b

code cleanup r10542 changes (#10937)

  • Participants
  • Parent commits 963b38d

Comments (0)

Files changed (1)

File app/controllers/settings_controller.rb

     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