rails / jbuilder

Jbuilder: generate JSON objects with a Builder-style DSL
MIT License
4.34k stars 440 forks source link

Rails6 removed namespaced_file_path #470

Closed kdiogenes closed 4 years ago

kdiogenes commented 5 years ago

This PR removed namespaced_file_path from Rails6: https://github.com/rails/rails/pull/27353

The jubilder controller template still uses this method: https://github.com/rails/jbuilder/blob/master/lib/generators/rails/templates/controller.rb#L2

I replaced this method by namespaced_path and all tests keep green.

Is there anything against this change?

kdiogenes commented 5 years ago

I also created a PR #471

olleolleolle commented 4 years ago

This is fixed in #471 - thank you for taking the time to describe and repair this!