Class: Bullet::Notification::UnusedEagerLoading
- 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
#body ⇒ Object
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 |
#title ⇒ Object
8 9 10 |
# File 'lib/bullet/notification/unused_eager_loading.rb', line 8 def title "Unused Eager Loading #{@path ? "in #{@path}" : 'detected'}" end |