Merge pull request #857 from internetee/remove-rubocop-gem

Remove "rubocop" gem
This commit is contained in:
Timo Võhmar 2018-06-14 13:35:25 +03:00 committed by GitHub
commit 8ec6b80794
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 5 additions and 187 deletions

View file

@ -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