Skip to content

Commit b7d5dd6

Browse files
lazyatomdefunkt
authored andcommitted
The url method only exists with Sinatra 1.2
1 parent c46b3b8 commit b7d5dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def poll
110110
if @polling
111111
text = "Last Updated: #{Time.now.strftime("%H:%M:%S")}"
112112
else
113-
text = "<a href='#{url(request.path_info)}.poll' rel='poll'>Live Poll</a>"
113+
text = "<a href='#{u(request.path_info)}.poll' rel='poll'>Live Poll</a>"
114114
end
115115
"<p class='poll'>#{text}</p>"
116116
end

0 commit comments

Comments
 (0)