How can I tell if Rails code is being run via rake or script/generate?
Posted
by booch
on Stack Overflow
See other posts from Stack Overflow
or by booch
Published on 2010-03-18T02:22:10Z
Indexed on
2010/03/18
2:31 UTC
Read the original article
Hit count: 323
ruby-on-rails
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 it's not useful in those situations. Is there any way to tell if that's the case?
© Stack Overflow or respective owner