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, #url

Instance Method Summary collapse

Methods inherited from Base

#body_with_caller, #call_stack_messages, #eql?, #hash, #initialize, #markdown, #notification_data, #notify_inline, #notify_out_of_channel, #short_notice, #whoami

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
  markdown(("##")+("Unused Eager Loading #{@path ? "in #{@path}" : 'detected'}"))
end