aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2015-11-08 10:06:56 -0800
committerGodfrey Chan <godfreykfc@gmail.com>2015-11-08 10:06:56 -0800
commit280654ef884f4e9310db89ccff99b7775013ed85 (patch)
tree09f719bb3aa88f5fd83af6d1ab328d41e4ac2d2d /railties/lib
parent54c87a1676b626b62b628320f57442ae6d9c59f7 (diff)
parent595fa6e9225a7a33806efa74fcbe54decdc37510 (diff)
downloadrails-280654ef884f4e9310db89ccff99b7775013ed85.tar.gz
rails-280654ef884f4e9310db89ccff99b7775013ed85.tar.bz2
rails-280654ef884f4e9310db89ccff99b7775013ed85.zip
Merge pull request #22222 from y-yagi/fix_application_controller_require_dependency_path_in_api
fix application_controller require_dependency path generated by api scaffold generator
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb b/railties/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb
index bc3c9b3f6b..17a86f376b 100644
--- a/railties/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb
+++ b/railties/lib/rails/generators/rails/scaffold_controller/templates/api_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 -%>