Module: BulletmarkRepairer::ActiveRecord::QueryMethod

Defined in:
lib/bulletmark_repairer/monkey_patches/active_record/query_method.rb

Instance Method Summary collapse

Instance Method Details

#eager_load(*args) ⇒ Object



11
12
13
14
# File 'lib/bulletmark_repairer/monkey_patches/active_record/query_method.rb', line 11

def eager_load(*args)
  BulletmarkRepairer::Thread.memorize_associations(name: model.name, method_type: :eager_load, args: args)
  super(args)
end

#includes(*args) ⇒ Object



6
7
8
9
# File 'lib/bulletmark_repairer/monkey_patches/active_record/query_method.rb', line 6

def includes(*args)
  BulletmarkRepairer::Thread.memorize_associations(name: model.name, method_type: :includes, args: args)
  super(args)
end

#preload(*args) ⇒ Object



16
17
18
19
# File 'lib/bulletmark_repairer/monkey_patches/active_record/query_method.rb', line 16

def preload(*args)
  BulletmarkRepairer::Thread.memorize_associations(name: model.name, method_type: :preload, args: args)
  super(args)
end