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