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

- old
+ new

@@ -89,10 +89,10 @@ # # Hanami::View::Configuration.for(MyApp::Views::Dashboard::Index) # # => will return from MyApp::View def self.for(base) # TODO this implementation is similar to Hanami::Controller::Configuration consider to extract it into Hanami::Utils - namespace = Utils::String.new(base).namespace + namespace = Utils::String.namespace(base) framework = Utils::Class.load_from_pattern!("(#{namespace}|Hanami)::View") framework.configuration end # Initialize a configuration instance