Reputation: 1562
How to call few model methods and send emails through my rake task?
Upvotes: 2
Views: 1331
Reputation: 46914
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
Upvotes: 7