summaryrefslogtreecommitdiffstats
path: root/app/models/repository.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 06:53:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 06:53:57 +0000
commit3483ea73b12b714a865f38efb2d2cf60abb104ea (patch)
tree42a340eefa84a8214872dc7a859b361909014c19 /app/models/repository.rb
parentfc2e4c1eba584205805a80dc4d7bb25d949a6840 (diff)
downloadredmine-3483ea73b12b714a865f38efb2d2cf60abb104ea.tar.gz
redmine-3483ea73b12b714a865f38efb2d2cf60abb104ea.zip
cleanup: rubocop: fix Layout/AlignArguments in app/models/repository.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18989 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r--app/models/repository.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index da13be29e..089027c9d 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -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)