Skip to content

Commit

Permalink
Merge pull request #471 from fnix/namespace-method
Browse files Browse the repository at this point in the history
namespaced_file_path was removed from railties
  • Loading branch information
rafaelfranca authored Mar 16, 2020
2 parents e0ac4a1 + 4365ab4 commit edbb333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/generators/rails/templates/api_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% if namespaced? -%>
require_dependency "<%= namespaced_file_path %>/application_controller"
require_dependency "<%= namespaced_path %>/application_controller"
<% end -%>
<% module_namespacing do -%>
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/rails/templates/controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% if namespaced? -%>
require_dependency "<%= namespaced_file_path %>/application_controller"
require_dependency "<%= namespaced_path %>/application_controller"
<% end -%>
<% module_namespacing do -%>
Expand Down

0 comments on commit edbb333

Please sign in to comment.