How can I tell if Rails code is being run via rake or script/generate?

前端 未结 0 1371
滥情空心
滥情空心 2021-02-11 16:20

I\'ve got a plugin that is a bit heavy-weight. (Bullet, configured with Growl notifications.) I\'d like to not enable it if I\'m just running a rake task or a generator, since i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题