lib/nanoc/base/plugin_registry.rb in nanoc-4.2.2 vs lib/nanoc/base/plugin_registry.rb in nanoc-4.2.3
- old
+ new
@@ -194,12 +194,10 @@
protected
def resolve(class_or_name, _klass)
if class_or_name.is_a?(String)
- class_or_name.scan(/\w+/).reduce(Kernel) do |memo, part|
- memo.const_get(part)
- end
+ Kernel.const_get(class_or_name)
else
class_or_name
end
end
memoize :resolve