lib/gizzard/shard_template.rb in gizzmo-0.11.4 vs lib/gizzard/shard_template.rb in gizzmo-0.12.0

- old
+ new

@@ -124,10 +124,16 @@ end def shared_host?(other) raise ArgumentError, "other is not a ShardTemplate" unless other.is_a? ShardTemplate - (self.concrete_descendants & other.concrete_descendants).length > 0 + self.concrete_descendants.each do |s| + other.concrete_descendants.each do |o| + return true if s.shard_eql? o + end + end + + false end def hash weight.hash + host.hash + type.hash + children.hash end