Sha256: 9123278cb9443e54274a6ff0314c68f0ad5e227b864bd4c1afeb8e511f24bd8a
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bullet-5.7.0 | lib/bullet/notification/n_plus_one_query.rb |