class Bullet::Detector::NPlusOneQuery
def add_inversed_object(object, association)
Experimental RBS support (using type sampling data from the type_fusion
project).
type Bullet__Detector__NPlusOneQuery_add_inversed_object_object = UserHomeLocation | UserLocation | UserTrade | Interview def add_inversed_object: (Bullet__Detector__NPlusOneQuery_add_inversed_object_object object, Symbol association) -> Set
This signature was generated using 5 samples from 1 application.
def add_inversed_object(object, association) return unless Bullet.start? return unless Bullet.n_plus_one_query_enable? return unless object.bullet_primary_key_value Bullet.debug( 'Detector::NPlusOneQuery#add_inversed_object', "object: #{object.bullet_key}, association: #{association}" ) inversed_objects.add object.bullet_key, association end