views:

121

answers:

1

I want to call few model methods and send emails through my rake task. Any help would be apreciated

+3  A: 

In your rake task you need depend of environment. After you can use all of you Model.

task :my_task => [:environment] do
  User.all
end
shingara
Simple and works a treat!
macek