Skip to content

Instantly share code, notes, and snippets.

@padi
Created Oct 5, 2011
Embed
What would you like to do?
Rake Task for Updating Conditions
desc 'Update traffic condition'
task :update_condition => :environment do
Report.all.each do |report|
report.update_attribute(:conditions, Tweet.new(report).conditions) unless report.user
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment