Added Rails engine "namespace" to asset paths when installing CASino. Added migrations generator to copy migrations because the built-in rake railties:install:migrations does not work when running the command on a Rails engine. It's a simple fix to copy the files.
Given, we may have a special case where we're mounting CASino in another mountable Rails engine.
You can test this by creating a mountable Rails engine, and mounting CASino. Then (from the rails engine root) try running the generator rails g casino:install or the Rake command rake casino:install:migrations. It doesn't seem to work (with the old code), but works now with this new generator.
Coverage remained the same at 97.201% when pulling 9f3a930ce9342b4d8d177ef40bd1471b497b3131 on identification-io:feature/use_in_mounted_rails_engine into fed06268949fbc50d695d0b27060599cdd32073f on rbCAS:master.
Accidentally closed https://github.com/rbCAS/CASino/pull/130 - moved feature to a branch to track separately.
Added Rails engine "namespace" to asset paths when installing CASino. Added migrations generator to copy migrations because the built-in
rake railties:install:migrations
does not work when running the command on a Rails engine. It's a simple fix to copy the files.Given, we may have a special case where we're mounting CASino in another mountable Rails engine.
You can test this by creating a mountable Rails engine, and mounting CASino. Then (from the rails engine root) try running the generator
rails g casino:install
or the Rake commandrake casino:install:migrations
. It doesn't seem to work (with the old code), but works now with this new generator.