From ae24575fb18db249d37f0c50472395fc3d3eb042 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sat, 23 Apr 2022 08:39:45 +0900 Subject: [PATCH] Now we don't use the `@options` ivar here --- kaminari-core/lib/kaminari/helpers/paginator.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kaminari-core/lib/kaminari/helpers/paginator.rb b/kaminari-core/lib/kaminari/helpers/paginator.rb index 2891947..034e9fc 100644 --- a/kaminari-core/lib/kaminari/helpers/paginator.rb +++ b/kaminari-core/lib/kaminari/helpers/paginator.rb @@ -88,12 +88,12 @@ module Kaminari include Comparable def initialize(options, page, last) #:nodoc: - @options, @page = options, page - @current_page = @options[:current_page] - @total_pages = @options[:total_pages] - @left = @options[:left] - @right = @options[:right] - @window = @options[:window] + @page = page + @current_page = options[:current_page] + @total_pages = options[:total_pages] + @left = options[:left] + @right = options[:right] + @window = options[:window] @was_truncated = last.is_a? Gap end