From 2e8146909a08d802f6fb138e666593d7a0887d18 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 20 Sep 2015 16:02:39 +0900 Subject: fix application_controller require_dependency path generated by the scaffold generator This is follow up to #6643. In #6643, the controller generator only had been fixed, in this commit to fix the scaffold generator. --- .../rails/generators/rails/scaffold_controller/templates/controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb index 2c3b04043f..f73e9a96ba 100644 --- a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +++ b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb @@ -1,5 +1,5 @@ <% if namespaced? -%> -require_dependency "<%= namespaced_file_path %>/application_controller" +require_dependency "<%= namespaced_path %>/application_controller" <% end -%> <% module_namespacing do -%> -- cgit v1.2.3