Class Bullet::Detector::Association
In: lib/bullet/detector/association.rb
Parent: Base

Methods

Public Class methods

impossible_objects keep the class to objects relationships that the objects may not cause N+1 query. e.g. { Post => ["Post:1", "Post:2"] } if find collection returns only one object, then the object is impossible object, impossible_objects are used to avoid treating 1+1 query to N+1 query.

possible_objects keep the class to object relationships that the objects may cause N+1 query. e.g. { Post => ["Post:1", "Post:2"] }

[Validate]