Rake tasks + plugins

In my rake task I try to use the classes and methods defined in a plugin. Seems that plugins are not hooked up during the rake task run.

Models are also not hooked up.

I can require 'ModelName' I can require 'activerecord'

But my Model depends a lot on the plugin (globalize) and initiation of the whole globalize plugin in the .rake file would be a mess.

What is the simplest way to hook up the whole environment during the rake task?

Make your task depend on the :environment task.

Fred

Thank you very much!