]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at app/models/setting.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:30:31 +0000 (12:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:30:31 +0000 (12:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20283 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/setting.rb

index 16e51fd53b9277a8d3c5f7bac481adf411479f8e..d8f41ba51a542ef46a3b3fea58a27983918a8ebc 100644 (file)
@@ -221,11 +221,11 @@ class Setting < ActiveRecord::Base
       params[:keywords].each_with_index do |keywords, i|
         next if keywords.blank?
 
-        s << attributes.inject({}) {|h, a|
+        s << attributes.inject({}) do |h, a|
           value = params[a][i].to_s
           h[a.to_s] = value if value.present?
           h
-        }.merge('keywords' => keywords)
+        end.merge('keywords' => keywords)
       end
     end
     s