I have the following:
class ObjectA < ActiveRecord::Base
has_one :object_b
end
class ObjectB < ActiveRecord::Base
belongs_to :object_a
has_one :object_c
end
class ObjectC < ActiveRecord::Base
belongs_to :object_b
end
So doing ObjectA.eager_load(:object_b) will eager load the ObjectB obviously. But i'm trying to eager load the entire hierarchy without having to issue a new query every time I call: object_a.object_b.object_c
Ideas?