Class | Bullet::Detector::UnusedEagerLoading |
In: |
lib/bullet/detector/unused_eager_loading.rb
|
Parent: | Association |
check if there are unused preload associations.
get related_objects from eager_loadings associated with object and associations get call_object_association from associations of call_object_associations whose object is in related_objects if association not in call_object_association, then the object => association - call_object_association is ununsed preload assocations