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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to