<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 test/rails_root/log/*.log
 doc
 coverage
+.svn/</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -372,7 +372,10 @@ module ThoughtBot # :nodoc:
             assert reflection, &quot;#{klass.name} does not have any relationship to #{association}&quot;
             assert_equal :has_many, reflection.macro
 
-            associated_klass = (reflection.options[:class_name] || association.to_s.classify).constantize
+            associated_klass_name = reflection.options[:class_name]
+            associated_klass_name = reflection.options[:source].to_s.classify if associated_klass_name.blank?
+            associated_klass_name = association.to_s.classify                 if associated_klass_name.blank?
+            associated_klass = associated_klass_name.constantize
 
             if through
               through_reflection = klass.reflect_on_association(through)</diff>
      <filename>lib/shoulda/active_record_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cefcfe1205f3636615e0562bba0ff60d3bf02922</id>
    </parent>
  </parents>
  <author>
    <name>Tammer Saleh</name>
    <email>tsaleh@thoughtbot.com</email>
  </author>
  <url>http://github.com/thoughtbot/shoulda/commit/2cb29f5e6daf217299296282e753b5f0bef9ff37</url>
  <id>2cb29f5e6daf217299296282e753b5f0bef9ff37</id>
  <committed-date>2008-07-31T19:36:15-07:00</committed-date>
  <authored-date>2008-07-31T19:36:15-07:00</authored-date>
  <message>fixed should_have_many :through bug #60, and added .svn to gitignore.</message>
  <tree>3d01fc445b30eb1e85208096b0360f59c070c406</tree>
  <committer>
    <name>Tammer Saleh</name>
    <email>tsaleh@thoughtbot.com</email>
  </committer>
</commit>
