Sha256: 9bdfb2d6361f0f7fdff4ce1e97a8a7e36d582bad773a930ab673d1022b78568c
Contents?: true
Size: 636 Bytes
Versions: 4
Compression:
Stored size: 636 Bytes
Contents
module Bullet module Notification class NPlusOneQuery < Base def initialize(callers, base_class, associations, path = nil) super(base_class, associations, path) @callers = callers end def body "#{klazz_associations_str}\n Add to your finder: #{associations_str}" end def title "USE 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