public
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
Minor updates related to feed dependencies
Michael Hartl (author)
Tue Jun 17 16:08:33 -0700 2008
commit  96fee0026909e1877f78aeea9956324d1e125b89
tree    498ca2b702c36bf4e0bf029f3c76616f001a9a16
parent  e43a94f4fef672431de721f93579087b11e306a6
...
81
82
83
84
 
85
86
87
...
81
82
83
 
84
85
86
87
0
@@ -81,7 +81,7 @@ class Person < ActiveRecord::Base
0
     person.has_many :_received_messages, :foreign_key => "recipient_id",
0
                     :conditions => "recipient_deleted_at IS NULL"
0
   end
0
- has_many :feeds#, :dependent => :destroy
0
+ has_many :feeds
0
   has_many :activities, :through => :feeds, :order => 'created_at DESC',
0
                                             :limit => FEED_SIZE,
0
                                             :dependent => :destroy
...
79
80
81
82
 
83
84
85
...
79
80
81
 
82
83
84
85
0
@@ -79,7 +79,7 @@ describe Person do
0
       # (with the first admin) as a side-effect, thereby ensuring a
0
       # nonempty feed.
0
       person = create_person(:save => true)
0
- person.feed.should_not be_empty
0
+ Activity.find_all_by_person_id(person).should_not be_empty
0
       person.destroy
0
       Activity.find_all_by_person_id(person).should be_empty
0
       Feed.find_all_by_person_id(person).should be_empty

Comments

    No one has commented yet.