Module: Bullet::SaveWithBulletSupport
- Defined in:
- lib/bullet/active_record5.rb,
lib/bullet/active_record52.rb,
lib/bullet/active_record60.rb,
lib/bullet/active_record61.rb,
lib/bullet/active_record70.rb,
lib/bullet/active_record71.rb,
lib/bullet/active_record72.rb,
lib/bullet/active_record80.rb
Instance Method Summary collapse
Instance Method Details
#_create_record ⇒ Object
5 6 7 8 9 10 |
# File 'lib/bullet/active_record5.rb', line 5 def _create_record(*) super do Bullet::Detector::NPlusOneQuery.add_impossible_object(self) yield(self) if block_given? end end |