lib/padrino-gen/generators/controller.rb in padrino-gen-0.12.4 vs lib/padrino-gen/generators/controller.rb in padrino-gen-0.12.5

- old
+ new

@@ -56,10 +56,10 @@ template 'templates/controller.rb.tt', destination_root(app, 'controllers', "#{name.to_s.underscore}.rb") empty_directory destination_root(app, "/views/#{name.to_s.underscore}") if test? include_component_module_for(:test) - path = @controller + path = @controller.dup if options[:parent] && !options[:parent].empty? path = Application.process_path_for_parent_params(path, [options[:parent]]).prepend("/") end path.prepend("/") unless path.start_with?("/")