lib/kaminari/helpers/paginator.rb in kaminari-0.16.0 vs lib/kaminari/helpers/paginator.rb in kaminari-0.16.1
- old
+ new
@@ -23,10 +23,10 @@
h[:left] = outer_window if h[:left] == 0
h[:right] = options.delete(:right) || Kaminari.config.right
h[:right] = outer_window if h[:right] == 0
end
@template, @options = template, options
- @theme = @options.delete(:theme)
+ @theme = @options[:theme]
@views_prefix = @options[:views_prefix]
@window_options.merge! @options
@window_options[:current_page] = @options[:current_page] = PageProxy.new(@window_options, @options[:current_page], nil)
@last = nil