Sha256: 1cb4b88285c85f20024782effd810295a27b9371a2693a8ae5656b5929389f7a
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 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 notification_data super.merge( :backtrace => @callers ) end def body "#{klazz_associations_str}\n Remove from your finder: #{associations_str}" end def title "Unused Eager Loading #{@path ? "in #{@path}" : 'detected'}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems