Skip to content

Commit fc26509

Browse files
srdefunkt
authored andcommitted
ruby 1.8.6 compat
1 parent 4a3b3fa commit fc26509

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
@@ -33,7 +33,7 @@ def path_prefix
3333
end
3434

3535
def class_if_current(path = '')
36-
'class="current"' if current_page.start_with?(path.to_s)
36+
'class="current"' if current_page[0, path.size] == path
3737
end
3838

3939
def tab(name)

0 commit comments

Comments
 (0)