1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Enable sessions so Rack::Protection will work

closes #2461
This commit is contained in:
jc00ke 2015-07-28 14:58:40 -07:00
parent f75c91a5f4
commit 75a3524c91

View file

@ -11,6 +11,7 @@ module Sidekiq
class Web < Sinatra::Base
include Sidekiq::Paginator
enable :sessions
use Rack::Protection, :use => :authenticity_token unless ENV['RACK_ENV'] == 'test'
set :root, File.expand_path(File.dirname(__FILE__) + "/../../web")