Add and apply Style/RedundantSelf rubocop rule
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user