What should I do to load rails models for rake task which is part of my plugin?
Require the :environment rake task to run before it.
task :my_task => :environment do end