mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Fix faling specs for sinatra 1.4.5
This commit is contained in:
parent
b18825c3a5
commit
06ed952452
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ module Kaminari::Helpers
|
||||||
query = params.merge(param_name => scope.prev_page)
|
query = params.merge(param_name => scope.prev_page)
|
||||||
link_to name, env['PATH_INFO'] + (query.empty? ? '' : "?#{query.to_query}"), options.reverse_merge(:rel => 'previous')
|
link_to name, env['PATH_INFO'] + (query.empty? ? '' : "?#{query.to_query}"), options.reverse_merge(:rel => 'previous')
|
||||||
else
|
else
|
||||||
placeholder
|
placeholder.to_s.html_safe
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ module Kaminari::Helpers
|
||||||
query = params.merge(param_name => scope.next_page)
|
query = params.merge(param_name => scope.next_page)
|
||||||
link_to name, env['PATH_INFO'] + (query.empty? ? '' : "?#{query.to_query}"), options.reverse_merge(:rel => 'next')
|
link_to name, env['PATH_INFO'] + (query.empty? ? '' : "?#{query.to_query}"), options.reverse_merge(:rel => 'next')
|
||||||
else
|
else
|
||||||
placeholder
|
placeholder.to_s.html_safe
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue