diff options
author | Tsukuru Tanimichi <info+git@ttanimichi.com> | 2018-05-01 23:08:31 +0900 |
---|---|---|
committer | Tsukuru Tanimichi <info+git@ttanimichi.com> | 2018-05-05 13:27:55 +0900 |
commit | 59c3d539ab9d3c00d910939f63eaadb67aea719b (patch) | |
tree | 9c163e3f9d63a68b88f72eb7f4b78608895a0b4c /activerecord/test/cases/inheritance_test.rb | |
parent | a42fb70a152ee05725685a8f68e3e8e2ddda4b36 (diff) | |
download | rails-59c3d539ab9d3c00d910939f63eaadb67aea719b.tar.gz rails-59c3d539ab9d3c00d910939f63eaadb67aea719b.tar.bz2 rails-59c3d539ab9d3c00d910939f63eaadb67aea719b.zip |
Don't generate assets' initializer in `app:update` task if sprockets is skipped
Execute `rails new myapp -S` and then upgrade the app by using the `app:update` task, `bin/rails c` results in `NoMethodError`.
```
$ bin/rails app:update
$ bin/rails c
Traceback (most recent call last):
44: from bin/rails:4:in `<main>'
(snip)
1: from /Users/tanimichi.tsukuru/ghq/github.com/moneyforward/moneyplus/config/initializers/assets.rb:4:in `<top (required)>'
/Users/tanimichi.tsukuru/ghq/github.com/moneyforward/moneyplus/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/railtie/configuration.rb:97:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x00007fcb8d3697e0> (NoMethodError)
Did you mean? asset_host
```
Diffstat (limited to 'activerecord/test/cases/inheritance_test.rb')
0 files changed, 0 insertions, 0 deletions