For clarity
This commit is contained in:
parent
1f2909bab0
commit
feab7a152c
|
@ -145,8 +145,8 @@ module Kaminari
|
|||
end
|
||||
|
||||
def single_gap?
|
||||
(@page == @options[:current_page] - @options[:window] - 1) && (@page == @options[:left] + 1) ||
|
||||
(@page == @options[:current_page] + @options[:window] + 1) && (@page == @options[:total_pages] - @options[:right])
|
||||
((@page == @options[:current_page] - @options[:window] - 1) && (@page == @options[:left] + 1)) ||
|
||||
((@page == @options[:current_page] + @options[:window] + 1) && (@page == @options[:total_pages] - @options[:right]))
|
||||
end
|
||||
|
||||
def out_of_range?
|
||||
|
|
Loading…
Reference in New Issue