aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit/helper
diff options
context:
space:
mode:
authorFumiaki MATSUSHIMA <mtsmfm@gmail.com>2016-12-22 19:21:11 +0900
committerFumiaki MATSUSHIMA <mtsmfm@gmail.com>2017-01-03 21:18:09 +0900
commit085546df456139b6c5d2cde964133e93a0818571 (patch)
tree1cf387116f32d69653126dd9e7c63bb10f197414 /railties/lib/rails/generators/test_unit/helper
parent33e60514aed85b3076f2636d5f1ccfb513aace1c (diff)
downloadrails-085546df456139b6c5d2cde964133e93a0818571.tar.gz
rails-085546df456139b6c5d2cde964133e93a0818571.tar.bz2
rails-085546df456139b6c5d2cde964133e93a0818571.zip
Fix generator command for nested (namespaced) rails engine
If we create nested (namespaced) rails engine such like bukkits-admin, `bin/rails g scaffold User name:string age:integer` will create `bukkits-admin/app/controllers/bukkits/users_controller.rb` but it should create `bukkits-admin/app/controllers/bukkits/admin/users_controller.rb`. In #6643, we changed `namespaced_path` as root path because we supposed application_controller is always in root but nested rails engine's application_controller will not.
Diffstat (limited to 'railties/lib/rails/generators/test_unit/helper')
0 files changed, 0 insertions, 0 deletions