1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

"NameError: uninitialized constant Kaminari::ActionView::LogSubscriber"

This commit is contained in:
Akira Matsuda 2016-06-30 17:05:26 +09:00
parent 70071d2a81
commit 5bfafb08b7

View file

@ -140,7 +140,7 @@ module Kaminari
undef :to_s
# Redefining to_s not to log each render_partial
def to_s #:nodoc:
subscriber = ActionView::LogSubscriber.log_subscribers.detect {|ls| ls.is_a? ActionView::LogSubscriber}
subscriber = ::ActionView::LogSubscriber.log_subscribers.detect {|ls| ls.is_a? ::ActionView::LogSubscriber}
# There is a logging subscriber
# and we don't want it to log render_partial