Skip to content
Snippets Groups Projects
Commit 42ef4473 authored by Eliot Sykes's avatar Eliot Sykes
Browse files

Add preload+joins alternative option for overcoming the known issue with includes

In face of this known issue, .joins(...).preload(...) felt like a slightly better option (vs. :select option passed to .near()) for just the particular use case I'm up against where includes would have been useful. 

Thought it'd be worth adding to the docs, especially as preload() isn't widely demonstrated in Rails own docs.
parent ab19ff71
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment