class Bullet::Notification::NPlusOneQuery
def body
def body "#{klazz_associations_str}\n Add to your finder: #{associations_str}" end
def body_with_caller
def body_with_caller "#{body}\n#{call_stack_messages}" end
def call_stack_messages
def call_stack_messages (['N+1 Query method call stack'] + @callers).join( "\n " ) end
def initialize(callers, base_class, associations, path = nil)
def initialize(callers, base_class, associations, path = nil) super(base_class, associations, path) @callers = callers end
def title
def title "N+1 Query #{@path ? "in #{@path}" : 'detected'}" end