I've attached and inlined a patch.  Could you give it a try and see if 
it helps?   it's just a wild stab...

diff --git a/hobo/lib/hobo/model.rb b/hobo/lib/hobo/model.rb
index a47f78a..0fe7d99 100644
--- a/hobo/lib/hobo/model.rb
+++ b/hobo/lib/hobo/model.rb
@@ -296,6 +296,7 @@ module Hobo

        def reverse_reflection(association_name)
          refl = reflections[association_name.to_sym] or raise "No 
reverse reflection for #{name}.#{association_name}"
+        return nil if refl.klass.nil?
          return nil if refl.options[:conditions] || 
refl.options[:polymorphic]

          if refl.macro == :has_many && (self_to_join = 
refl.through_reflection)

Thanks,
bryan 

--

You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.


diff --git a/hobo/lib/hobo/model.rb b/hobo/lib/hobo/model.rb
index a47f78a..0fe7d99 100644
--- a/hobo/lib/hobo/model.rb
+++ b/hobo/lib/hobo/model.rb
@@ -296,6 +296,7 @@ module Hobo
 
       def reverse_reflection(association_name)
         refl = reflections[association_name.to_sym] or raise "No reverse reflection for #{name}.#{association_name}"
+        return nil if refl.klass.nil?
         return nil if refl.options[:conditions] || refl.options[:polymorphic]
         
         if refl.macro == :has_many && (self_to_join = refl.through_reflection)

Reply via email to