Skip to content

Commit 0de5d08

Browse files
committed
Give Resque route a name and use that for the iframe src
Closes gitlabhq#1350
1 parent ed954eb commit 0de5d08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/admin/resque/show.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
%h3 Resque
2-
%iframe{src: "/info/resque", width: 1168, height: 600, style: "border: none"}
2+
%iframe{src: resque_url, width: 1168, height: 600, style: "border: none"}

config/routes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Optionally, enable Resque here
1212
require 'resque/server'
13-
mount Resque::Server.new, at: '/info/resque'
13+
mount Resque::Server.new, at: '/info/resque', as: 'resque'
1414

1515
# Enable Grack support
1616
mount Grack::Bundle.new({

0 commit comments

Comments
 (0)