Skip to content

jdufresne/test-bullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bullet Test Case

This repository is a minimal test case to demonstrate an incorrect occurrence of "AVOID eager loading detected" from the bullet gem.

To run:

$ bundle i
$ bundle exec db:create db:migrate
$ bundle exec rails console < run.rb

Expected: the script completes without any bullet errors.

Actual: the script exits with the exception:

AVOID eager loading detected
  M1M2 => [:m1]
  Remove from your query: .includes([:m1])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages