Sha256: e8e8393cee956f79267c1b2880b6581df9b28b4afae642dd90fdf82568a1a6f1
Contents?: true
Size: 658 Bytes
Versions: 23
Compression:
Stored size: 658 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 query: #{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
23 entries across 23 versions & 1 rubygems