public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
Testing fix for incorrectly specified :source option on a has_many 
:through
rmm5t (author)
Sun Aug 31 09:46:38 -0700 2008
commit  0040ccda1bb78e8e259f49f7896eb2d94f988263
tree    bacbd04a25edab5807e60be0d59f43e027c6c2f8
parent  68e42610bed1a1caf0a2bb5fe73f72ccd5e44e89
...
3
4
5
6
7
 
 
8
9
10
...
3
4
5
 
 
6
7
8
9
10
0
@@ -3,8 +3,8 @@ class Post < ActiveRecord::Base
0
   belongs_to :owner, :foreign_key => :user_id, :class_name => 'User'
0
   has_many :taggings
0
   has_many :tags, :through => :taggings
0
- has_many :through_tags, :through => :taggings, :source => :tags
0
-
0
+ has_many :through_tags, :through => :taggings, :source => :tag
0
+
0
   validates_uniqueness_of :title
0
   validates_presence_of :title
0
   validates_presence_of :body, :message => 'Seriously... wtf'

Comments

    No one has commented yet.