lib/hanami/view/rendering/layout_finder.rb in hanami-view-1.2.1 vs lib/hanami/view/rendering/layout_finder.rb in hanami-view-1.3.0.beta1

- old
+ new

@@ -64,10 +64,10 @@ def self.find(layout, namespace = Object) case layout when Symbol, String # TODO Move this low level logic into a Hanami::Utils solution class_name = "#{ Utils::String.classify(layout) }#{ SUFFIX }" - namespace = Utils::Class.load_from_pattern!(namespace) + namespace = Utils::Class.load!(namespace) namespace.const_get(class_name) when Class layout end || NullLayout end