Skip to content

Commit

Permalink
Fix faling specs for sinatra 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Apr 10, 2014
1 parent b18825c commit 06ed952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kaminari/helpers/sinatra_helpers.rb
Expand Up @@ -119,7 +119,7 @@ def link_to_previous_page(scope, name, options = {})
query = params.merge(param_name => scope.prev_page)
link_to name, env['PATH_INFO'] + (query.empty? ? '' : "?#{query.to_query}"), options.reverse_merge(:rel => 'previous')
else
placeholder
placeholder.to_s.html_safe
end
end

Expand Down Expand Up @@ -149,7 +149,7 @@ def link_to_next_page(scope, name, options = {})
query = params.merge(param_name => scope.next_page)
link_to name, env['PATH_INFO'] + (query.empty? ? '' : "?#{query.to_query}"), options.reverse_merge(:rel => 'next')
else
placeholder
placeholder.to_s.html_safe
end
end
end
Expand Down

0 comments on commit 06ed952

Please sign in to comment.