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:
parent
2e73123c58
commit
ae24575fb1
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue