1
0
Fork 0
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:
Yuki Nishijima 2014-04-09 19:19:16 -07:00
parent b18825c3a5
commit 06ed952452

View file

@ -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