Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 518 Bytes


By default ActiveRecord will raise an error when trying to eager load association that doesn't exist.

This can be an issue with polymorphism or STI.

See this issue for more details:


ActiveRecord::lax_includes do
  # ... record with missing association are filtered out instead of raising an error

# back to normal `Association named '****' was not found; perhaps you misspelled it?` exception.