Sha256: e1f76e2b2070fb56bfb7feb6548f9d6f251d58064ae7b5f6e6f1130c67a1d447
Contents?: true
Size: 679 Bytes
Versions: 8
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true 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
8 entries across 8 versions & 1 rubygems