mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Remove Rubocop inline directives
This commit is contained in:
parent
66dd10302d
commit
c44f3df7f5
28 changed files with 5 additions and 169 deletions
|
@ -311,7 +311,6 @@ class Contact < ActiveRecord::Base
|
|||
self[:code] = code if new_record? # cannot change code later
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/CyclomaticComplexity
|
||||
def generate_code
|
||||
return nil unless new_record?
|
||||
return nil if registrar.blank?
|
||||
|
@ -328,7 +327,6 @@ class Contact < ActiveRecord::Base
|
|||
|
||||
self[:code] = "#{registrar.code}:#{code}".upcase
|
||||
end
|
||||
# rubocop:enable Metrics/CyclomaticComplexity
|
||||
|
||||
alias_method :regenerate_code, :generate_code
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue