Open c80609a opened 8 years ago
The relevant code in this gem is here: https://github.com/brianhempel/active_record_union/blob/master/lib/active_record_union/active_record/relation/union.rb#L50-L54
So see what not_my_free_areas.includes_values
is and what all_my_areas.includes_values
is and that should give you a clue to what's going on.
@c80609a did you gain any more information about what's going on in your app?
I run into this issues because I include properties in activeadmin controller
Can you provide more detailed information?
@brianhempel Not sure if this is the right issue to comment upon, but am coming from the Readme where you asked folks to make a noise around supporting 'eager-loading'. Is that still on the radar? In my case, almost all scopes have eager-loading and includes, and I'd love to clean up my code using this!
@oyeanuj Can you quick open a separate issue for that? The problem that spawned this particular thread is unclear.
I get an error "Cannot union relation with includes" running my app (key gems: activeadmin + active_record_union). But the same code works without any errors running via console.
App:
Console: