1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 10:21:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-09 06:53:57 +00:00
parent fc2e4c1eba
commit 3483ea73b1

View 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)