"warning: instance variable @last not initialized"

This commit is contained in:
Akira Matsuda 2012-06-20 13:25:14 +09:00
parent c2681a4f0a
commit 82a38e07db
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ module Kaminari
@options[:current_page] = PageProxy.new @window_options.merge(@options), @options[:current_page], nil
#FIXME for compatibility. remove num_pages at some time in the future
@options[:total_pages] ||= @options[:num_pages]
@last = nil
# initialize the output_buffer for Context
@output_buffer = ActionView::OutputBuffer.new
end