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

- old
+ new

@@ -94,10 +94,10 @@ # # => will duplicate from Hanami::Controller # # Hanami::Controller::Configuration.for(MyApp::Controllers::Dashboard) # # => will duplicate from MyApp::Controller def self.for(base) - namespace = Utils::String.new(base).namespace + namespace = Utils::String.namespace(base) framework = Utils::Class.load_from_pattern!("(#{namespace}|Hanami)::Controller") framework.configuration.duplicate end # Initialize a configuration instance