Skip to content

Commit

Permalink
Merge pull request #561 from AyuntamientoMadrid/refactor-rake-task
Browse files Browse the repository at this point in the history
Refactor rake task
  • Loading branch information
voodoorai2000 committed Sep 28, 2015
2 parents be6d22a + a5874e7 commit cac6b2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/tasks/failed_census_calls.rake

This file was deleted.

8 changes: 8 additions & 0 deletions lib/tasks/users.rake
@@ -0,0 +1,8 @@
namespace :users do

desc "Recalculates all the failed census calls counters for users"
task count_failed_census_calls: :environment do
User.find_each{ |user| User.reset_counters(user.id, :failed_census_calls)}
end

end

0 comments on commit cac6b2b

Please sign in to comment.