Bruno Cardoso
2010-Nov-12 12:09 UTC
Exclude an environment configuration from rake execution?
On my rails project I have config/environments/development.rb with the
following configuration:
config.after_initialize do
puts ''=> Abc Loader Initialized''
AbcLoader.do_something
end
I need this here so it can be executed on the startup of the
application.
However, everytime I execute a rake task on the application, this code
is also executed. Is there a way to exclude this code from rake tasks?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.