Bug (or feature?) in association_proxy: attributes in condit


#1

Hi List,

When I do something like

belongs_to :thing, :conditions => 'var = #{my_var}'

method_missing in association_proxy.rb gets recursively called.

Are these bind-style vars not allowed? Given the code in the
conditions method of association_proxy.rb, it looks lilke they’re
meant to be.

I’m running -v 4021 of rails.

Cheers,
Ian


#2

Update to the above

belongs_to :thing, :conditions => 'var = #{my_var}'

This works in rails 1.0, suggesting a bug has been introduced
somewhere along the line

Cheers,
Ian