lib/hanami/view/rendering/layout_finder.rb in hanami-view-1.0.1 vs lib/hanami/view/rendering/layout_finder.rb in hanami-view-1.1.0.beta1

- old
+ new

@@ -63,10 +63,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.new(layout).classify }#{ SUFFIX }" + class_name = "#{ Utils::String.classify(layout) }#{ SUFFIX }" namespace = Utils::Class.load_from_pattern!(namespace) namespace.const_get(class_name) when Class layout end || NullLayout