lib/nanoc/helpers/link_to.rb in nanoc-4.11.12 vs lib/nanoc/helpers/link_to.rb in nanoc-4.11.13
- old
+ new
@@ -15,10 +15,10 @@
# Find path
path =
case target
when String
target
- when Nanoc::CompilationItemView, Nanoc::BasicItemView, Nanoc::BasicItemRepView
+ when Nanoc::Core::CompilationItemView, Nanoc::Core::BasicItemView, Nanoc::Core::BasicItemRepView
raise "Cannot create a link to #{target.inspect} because this target is not outputted (its routing rule returns nil)" if target.path.nil?
target.path
else
raise ArgumentError, "Cannot link to #{target.inspect} (expected a string or an item, not a #{target.class.name})"