Sha256: 1c2d97ff069fd30fcd2ed7d0abd50e23480fe9fc2d37eb9ec630116a1c6a38b9
Contents?: true
Size: 660 Bytes
Versions: 4
Compression:
Stored size: 660 Bytes
Contents
module Bullet module Notification class UnusedEagerLoading < Base def initialize(callers, base_class, associations, path = nil) super(base_class, associations, path) @callers = callers end def body "#{klazz_associations_str}\n Remove from your finder: #{associations_str}" end def title "AVOID eager loading #{@path ? "in #{@path}" : 'detected'}" end def notification_data super.merge( :backtrace => [] ) end protected def call_stack_messages (['Call stack'] + @callers).join( "\n " ) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems