<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,9 +20,9 @@ module NestedHasManyThrough
           &quot;#{@nested_join_attributes[:remote_key]} = #{@owner.quoted_id} #{@nested_join_attributes[:conditions]}&quot;
         end
 
-        def construct_joins
+        def construct_joins(custom_joins = nil)
           @nested_join_attributes ||= construct_nested_join_attributes
-          @nested_join_attributes[:joins]
+          &quot;#{@nested_join_attributes[:joins]} #{custom_joins}&quot;
         end
       end
     end
@@ -39,11 +39,9 @@ module NestedHasManyThrough
     #   take part in the join
     # * &lt;tt&gt;:conditions&lt;/tt&gt;: any additional conditions (e.g. filtering by type for a polymorphic association,
     #    or a :conditions clause explicitly given in the association), including a leading AND
-    def construct_nested_join_attributes(
-      reflection = @reflection,
-      association_class = reflection.klass,
-      table_ids = {association_class.table_name =&gt; 1})
-
+    def construct_nested_join_attributes( reflection = @reflection, 
+                                          association_class = reflection.klass,
+                                          table_ids = {association_class.table_name =&gt; 1})
       if reflection.macro == :has_many &amp;&amp; reflection.through_reflection
         construct_has_many_through_attributes(reflection, table_ids)
       else</diff>
      <filename>lib/nested_has_many_through.rb</filename>
    </modified>
    <modified>
      <diff>@@ -66,7 +66,7 @@ class Post &lt; ActiveRecord::Base
   end
 
   # only test named_scope in edge
-  named_scope(:inflamatory) if respond_to?(:named_scope)
+  named_scope(:inflamatory, :conditions =&gt; {:inflamatory =&gt; true}) if respond_to?(:named_scope)
   
   belongs_to :author
   belongs_to :category</diff>
      <filename>spec/app.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>50d47663286883e23e39d605cc99dfc9d3163747</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/nested_has_many_through/commit/944581b7a08c4421507779042a085e8e5038e310</url>
  <id>944581b7a08c4421507779042a085e8e5038e310</id>
  <committed-date>2008-04-30T05:00:39-07:00</committed-date>
  <authored-date>2008-04-30T05:00:39-07:00</authored-date>
  <message>Fixed failing named_scope specs</message>
  <tree>e3215b4f5f2bac922624ebe38c1b70f94464fb08</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
