lib/nanoc/base/views/basic_item_view.rb in nanoc-4.11.0 vs lib/nanoc/base/views/basic_item_view.rb in nanoc-4.11.1
- old
+ new
@@ -11,10 +11,10 @@
def children
unless _unwrap.identifier.legacy?
raise Nanoc::Int::Errors::CannotGetParentOrChildrenOfNonLegacyItem.new(_unwrap.identifier)
end
- children_pattern = Nanoc::Int::Pattern.from(_unwrap.identifier.to_s + '*/')
+ children_pattern = Nanoc::Core::Pattern.from(_unwrap.identifier.to_s + '*/')
children = @context.items.select { |i| children_pattern.match?(i.identifier) }
children.map { |i| self.class.new(i, @context) }.freeze
end