Skip to content

Commit

Permalink
favors rake users:count_failed_census_calls
Browse files Browse the repository at this point in the history
instead of rake failed_census_count:count
  • Loading branch information
xuanxu committed Sep 27, 2015
1 parent be6d22a commit 43d7745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/failed_census_calls.rake → lib/tasks/users.rake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace :failed_census_calls do
namespace :users do

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

Expand Down

0 comments on commit 43d7745

Please sign in to comment.