This commit is contained in:
Akira Matsuda 2016-12-08 15:58:56 +09:00
parent 18c3b609c3
commit 106273c202
1 changed files with 1 additions and 2 deletions

View File

@ -12,11 +12,10 @@ module Kaminari
right ||= Kaminari.config.right
@window_options = {window: window || inner_window || Kaminari.config.window, left: left.zero? ? outer_window : left, right: right.zero? ? outer_window : right}
@template, @options, @theme, @views_prefix = template, options, options[:theme], options[:views_prefix]
@template, @options, @theme, @views_prefix, @last = template, options, options[:theme], options[:views_prefix], nil
@window_options.merge! @options
@window_options[:current_page] = @options[:current_page] = PageProxy.new(@window_options, @options[:current_page], nil)
@last = nil
#XXX Using parent template's buffer class for rendering each partial here. This might cause problems if the handler mismatches
@output_buffer = if defined?(::ActionView::OutputBuffer)
::ActionView::OutputBuffer.new