Piggy back plugin updated
Posted 16 Sep 2006
Timo Hentschel, one of my coworkers at the company for which I’m doing contract work at the moment (AutoScout24), has added a nifty little extension to my piggy_back plugin.
It’s now possible to piggy back from has_many :through associations, provided the association will return at most one record from the underlying SQL query.
This type of association currently needs to be used as a replacement for the non existent has_one :through.
There have been rumours that has_one :through will find it’s way into rails core. If it does, I’ll probably remove the has_many :through support from piggy back plugin again, or at least raise a deprecation warning.