public this repo is viewable by everyone
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Fixed bug in feed unduper
Michael Hartl (author)
9 days ago
commit  fa5fb8a6a966eb83862151c4e6861d0b5146e393
tree    bbea8eb8d812f259233160d10ebf1462479bba41
parent  7b1035abd858c865525d74cebc935f96ebe8bb40
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ require 'active_record/fixtures'
0
 namespace :feed do
0
   desc "Remove duplicate feed items"
0
   task :undup => :environment do |t|
0
- feed = Feed.find(:all, :order => 'id, person_id, activity_id')
0
+ feed = Feed.find(:all, :order => 'person_id, activity_id')
0
     dups = []
0
     feed.each_with_index do |item, i|
0
       dups.push(item) if i > 0 and same?(item, feed[i-1])

Comments

    No one has commented yet.