Module: Kaminari::ActionViewExtension::LogSubscriberSilencer

Defined in:
lib/kaminari/actionview/action_view_extension.rb

Overview

Monkey-patching AV::LogSubscriber not to log each render_partial

Instance Method Summary collapse

Instance Method Details

#render_partialObject



13
14
15
# File 'lib/kaminari/actionview/action_view_extension.rb', line 13

def render_partial(*)
  super unless Thread.current[:kaminari_rendering]
end