Skip to content

Commit

Permalink
"warning: instance variable @last not initialized"
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jun 20, 2012
1 parent c2681a4 commit 82a38e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/kaminari/helpers/paginator.rb
Expand Up @@ -25,6 +25,7 @@ def initialize(template, options) #:nodoc:
@options[:current_page] = PageProxy.new @window_options.merge(@options), @options[:current_page], nil @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 #FIXME for compatibility. remove num_pages at some time in the future
@options[:total_pages] ||= @options[:num_pages] @options[:total_pages] ||= @options[:num_pages]
@last = nil
# initialize the output_buffer for Context # initialize the output_buffer for Context
@output_buffer = ActionView::OutputBuffer.new @output_buffer = ActionView::OutputBuffer.new
end end
Expand Down

0 comments on commit 82a38e0

Please sign in to comment.