summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:30:41 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:30:41 +0000
commite57b7fd4c0fb0d45de7023531cb63796c07c59dc (patch)
treea6d718b1751266566fad1508ca649a6f04b99307 /app
parent991230f37a532129cd37fa681f43c1a7232ab5e6 (diff)
downloadredmine-e57b7fd4c0fb0d45de7023531cb63796c07c59dc.tar.gz
redmine-e57b7fd4c0fb0d45de7023531cb63796c07c59dc.zip
code cleanup: rubocop: fix Layout/MultilineArrayBraceLayout in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18795 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/setting.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/setting.rb b/app/models/setting.rb
index ec0bad0f2..384bb900b 100644
--- a/app/models/setting.rb
+++ b/app/models/setting.rb
@@ -150,7 +150,8 @@ class Setting < ActiveRecord::Base
def self.validate_all_from_params(settings)
messages = []
- [[:mail_handler_enable_regex_delimiters, :mail_handler_body_delimiters, /[\r\n]+/],
+ [
+ [:mail_handler_enable_regex_delimiters, :mail_handler_body_delimiters, /[\r\n]+/],
[:mail_handler_enable_regex_excluded_filenames, :mail_handler_excluded_filenames, /\s*,\s*/]
].each do |enable_regex, regex_field, delimiter|
if settings.key?(regex_field) || settings.key?(enable_regex)