Sha256: c8ccd2ec6e536a743c3d7271a2dfa0c1eaa08397b1431bcc1ef9c53027bca9f3
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
namespace :db do namespace :mongoid do namespace :voteable do desc 'Update up_votes_count, down_votes_count, votes_count and votes_point' task :remake_stats => :environment do Mongoid::Voteable::Stats.remake(:log) end desc 'Set counters and point to 0 for uninitizized voteable objects' task :init_stats => :environment do Mongoid::Voteable::Stats.init(:log) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voteable_mongoid-0.6.2 | lib/voteable_mongoid/railties/database.rake |
voteable_mongoid-0.6.1 | lib/voteable_mongoid/railties/database.rake |