I want to call few model methods and send emails through my rake task. Any help would be apreciated
views:
121answers:
1
+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
2010-04-09 10:19:11
Simple and works a treat!
macek
2010-07-29 16:38:40