Hi All,
On 8/13/06, Paul Haddad <paul.haddad@gmail.com>
wrote:> Am I missing something or is this just broken?
Well it strikes me as broken. I put the below bits in my app which
should fix this class of issue. Its unfortunately a sledge hammer
approach and not very pretty from an OO standpoint, but it does work.
--
Paul Haddad (paul.haddad@gmail.com paul@pth.com)
module ActiveRecord
module Associations
class AssociationProxy
def initialize(owner, reflection)
@owner, @reflection = owner, Marshal::load(Marshal.dump(reflection))
proxy_extend(reflection.options[:extend]) if reflection.options[:extend]
reset
end
end
end
end