Add and apply Style/RedundantSelf rubocop rule

This commit is contained in:
Javi Martín
2021-08-11 15:20:30 +02:00
parent a93384a2e1
commit adba81ea89
9 changed files with 20 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ class AdminNotification < ApplicationRecord
return unless link.present?
unless link =~ /\A(http:\/\/|https:\/\/|\/)/
self.link = "http://#{self.link}"
self.link = "http://#{link}"
end
end
end