class Bullet::Notification::UnusedEagerLoading
Public Class Methods
Source
# File lib/bullet/notification/unused_eager_loading.rb, line 6 def initialize(callers, base_class, associations, path = nil) super(base_class, associations, path) @callers = callers end
Calls superclass method
Bullet::Notification::Base::new
Public Instance Methods
Source
# File lib/bullet/notification/unused_eager_loading.rb, line 12 def body "#{klazz_associations_str}\n Remove from your query: #{associations_str}" end
Source
# File lib/bullet/notification/unused_eager_loading.rb, line 20 def notification_data super.merge(backtrace: []) end
Calls superclass method
Bullet::Notification::Base#notification_data
Source
# File lib/bullet/notification/unused_eager_loading.rb, line 16 def title "AVOID eager loading #{@path ? "in #{@path}" : 'detected'}" end
Protected Instance Methods
Source
# File lib/bullet/notification/unused_eager_loading.rb, line 26 def call_stack_messages (['Call stack'] + @callers).join("\n ") end