]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in app/models/repository.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 06:53:57 +0000 (06:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 06:53:57 +0000 (06:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18989 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository.rb

index da13be29e034af0691ed0fa9456067f98d498610..089027c9d3843784a1943dce9caa602344ce9d4d 100644 (file)
@@ -51,15 +51,17 @@ class Repository < ActiveRecord::Base
   validate :repo_create_validation, :on => :create
   validate :validate_repository_path
 
-  safe_attributes 'identifier',
+  safe_attributes(
+    'identifier',
     'login',
     'password',
     'path_encoding',
     'log_encoding',
-    'is_default'
+    'is_default')
 
-  safe_attributes 'url',
-    :if => lambda {|repository, user| repository.new_record?}
+  safe_attributes(
+    'url',
+    :if => lambda {|repository, user| repository.new_record?})
 
   def repo_create_validation
     unless Setting.enabled_scm.include?(self.class.name.demodulize)