Skip to content

Fibertide/active-record-lax-includes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ActiveRecord-lax-includes

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: rails/rails#8005

Usage

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%