Skip to content

Commit

Permalink
The url method only exists with Sinatra 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyatom authored and defunkt committed Mar 18, 2011
1 parent c46b3b8 commit b7d5dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/server.rb
Expand Up @@ -110,7 +110,7 @@ def poll
if @polling
text = "Last Updated: #{Time.now.strftime("%H:%M:%S")}"
else
text = "<a href='#{url(request.path_info)}.poll' rel='poll'>Live Poll</a>"
text = "<a href='#{u(request.path_info)}.poll' rel='poll'>Live Poll</a>"
end
"<p class='poll'>#{text}</p>"
end
Expand Down

0 comments on commit b7d5dd6

Please sign in to comment.