1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00

Merge branch 'send-csrf-tokens-with-trigger-and-unlock-actions' of https://github.com/kcdragon/sidetiq into kcdragon-send-csrf-tokens-with-trigger-and-unlock-actions

This commit is contained in:
Tobias Svensson 2016-02-04 07:16:31 +00:00
commit 0fc6349914
3 changed files with 4 additions and 1 deletions

View file

@ -36,6 +36,7 @@
</td>
<td>
<form action="<%= "#{root_path}sidetiq/#{meta.key}/unlock" %>" method="post">
<%= csrf_tag %>
<input class="btn btn-danger btn-small" type="submit" name="trigger" value="Unlock" data-confirm="Are you sure you want remove this lock?" />
</form>
</td>

View file

@ -37,6 +37,7 @@
</td>
<td>
<form action="<%= "#{root_path}sidetiq/#{worker.name}/trigger" %>" method="post">
<%= csrf_tag %>
<input class="btn btn-danger btn-small" type="submit" name="trigger" value="Trigger" data-confirm="Are you sure you want to trigger this job?" />
</form>
</td>

View file

@ -1,4 +1,5 @@
ENV['RACK_ENV'] = 'test'
ENV['RACK_ENV'] ||= 'test'
if RUBY_PLATFORM != "java"
require 'coveralls'
Coveralls.wear!