style(rubocop): remaining offences

This commit is contained in:
Adam Cooke
2024-02-12 09:55:20 +00:00
parent c6326a6524
commit ec636661d5
19 changed files with 49 additions and 44 deletions
-15
View File
@@ -44,19 +44,4 @@ module HasAuthentication
end
class Postal::Errors::AuthenticationError < Postal::Error
attr_reader :error
def initialize(error)
super()
@error = error
end
def to_s
"Authentication Failed: #{@error}"
end
end
# -*- SkipSchemaAnnotations
+1 -1
View File
@@ -85,7 +85,7 @@ class Domain < ApplicationRecord
def parent_domains
parts = name.split(".")
parts[0, parts.size - 1].each_with_index.map do |_, i|
parts[i..-1].join(".")
parts[i..].join(".")
end
end