mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 18:56:05 +00:00
style(rubocop): remaining offences
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user