public
Description: The web app builder for Rails
Homepage: http://hobocentral.net
Clone URL: git://github.com/tablatom/hobo.git
HoboFields -- fixed error when asking for attr_type of a polymorphic 
association
tablatom (author)
Fri Jul 11 06:47:53 -0700 2008
commit  626834e58505486b3d1d4d0f1d781c2dfacf72fe
tree    c7a704e41d27578bc78d64e861ea548a40959a2a
parent  eb0900e250e8c436bf5a38fc7a61cda9a1907276
...
146
147
148
149
 
150
151
152
...
146
147
148
 
149
150
151
152
0
@@ -146,7 +146,7 @@ module HoboFields
0
       attr_types[name] or
0
 
0
         if (refl = reflections[name.to_sym])
0
- if refl.macro.in?([:has_one, :belongs_to])
0
+ if refl.macro.in?([:has_one, :belongs_to]) && !refl.options[:polymorphic]
0
             refl.klass
0
           else
0
             refl

Comments

    No one has commented yet.