How to solve rake tasks deprecation on the rails plugin?

后端 未结 2 1260
死守一世寂寞
死守一世寂寞 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:22

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

    my_cool_plugin/tasks
    

    to

    my_cool_plugin/lib/tasks
    

提交回复
热议问题