Skip to content

Commit

Permalink
AO3-2722 Hound fix
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed Jun 24, 2023
1 parent a123664 commit 9608135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/skin_parent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class SkinParent < ApplicationRecord

validate :no_site_parent
def no_site_parent
if parent_skin&.get_role == "site" && !%w(override site).include?(child_skin.get_role)
errors.add(:base, ts("^You can't use %{title} as a parent unless replacing the default archive skin.", title: parent_skin.title))
end
return unless parent_skin&.get_role == "site" && !%w[override site].include?(child_skin.get_role)

errors.add(:base, ts("^You can't use %{title} as a parent unless replacing the default archive skin.", title: parent_skin.title))
end

validate :no_circular_skin
Expand Down

0 comments on commit 9608135

Please sign in to comment.