1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Now we don't use the @options ivar here

This commit is contained in:
Akira Matsuda 2022-04-23 08:39:45 +09:00
parent 2e73123c58
commit ae24575fb1

View file

@ -88,12 +88,12 @@ module Kaminari
include Comparable include Comparable
def initialize(options, page, last) #:nodoc: def initialize(options, page, last) #:nodoc:
@options, @page = options, page @page = page
@current_page = @options[:current_page] @current_page = options[:current_page]
@total_pages = @options[:total_pages] @total_pages = options[:total_pages]
@left = @options[:left] @left = options[:left]
@right = @options[:right] @right = options[:right]
@window = @options[:window] @window = options[:window]
@was_truncated = last.is_a? Gap @was_truncated = last.is_a? Gap
end end