Aryk Grosz wrote:
I tried using the eager_custom_sql.rb fix to be able to eager load
associations using find_by_sql.
I was able to get this working for my has_many associations, however, Im
having trouble getting it to work for belongs_to associations.
Has anyone experienced this? Any fixes?
belongs_to doesn't support a :finder_sql option, so you can't
use fully-custom sql. I'd be interested to see a belongs_to
that actually requires it.