Class: Bullet::Notification::UnusedEagerLoading

Inherits:
Base
  • Object
show all
Defined in:
lib/bullet/notification/unused_eager_loading.rb

Instance Attribute Summary

Attributes inherited from Base

#associations, #base_class, #notifier, #path

Instance Method Summary collapse

Methods inherited from Base

#body_with_caller, #eql?, #full_notice, #hash, #initialize, #notify_inline, #notify_out_of_channel, #standard_notice

Constructor Details

This class inherits a constructor from Bullet::Notification::Base

Instance Method Details

#bodyObject



4
5
6
# File 'lib/bullet/notification/unused_eager_loading.rb', line 4

def body
  "#{klazz_associations_str}\n  Remove from your finder: #{associations_str}"
end

#titleObject



8
9
10
# File 'lib/bullet/notification/unused_eager_loading.rb', line 8

def title
  "Unused Eager Loading #{@path ? "in #{@path}" : 'detected'}" 
end