How to solve rake tasks deprecation on the rails plugin?

后端 未结 2 1261
死守一世寂寞
死守一世寂寞 2021-01-03 03:49

Because of the concept introduced in here,

Rails::Plugin is nothing more than a Rails::Engine, but since it\'s loaded too late in the boot proces

相关标签:
2条回答
  • 2021-01-03 04:20

    i've just had the same problem here, just moved all the vendor/plugin/*/tasks/*.rake files to lib/tasks (had to create this directory because it didn't existed)

    then rake rails:update ran fine

    0 讨论(0)
  • 2021-01-03 04:22

    If you're the developer of a plugin, you would simply move

    my_cool_plugin/tasks
    

    to

    my_cool_plugin/lib/tasks
    
    0 讨论(0)
提交回复
热议问题