Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request sidekiq#2729 from SamMolokanov/fix/rack-namespace
Browse files Browse the repository at this point in the history
add absolute namespace for Rack::Protection
  • Loading branch information
mperham committed Dec 21, 2015
2 parents abe227d + 8bbcde6 commit 7f88278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Web < Sinatra::Base
include Sidekiq::Paginator

enable :sessions
use Rack::Protection, :use => :authenticity_token unless ENV['RACK_ENV'] == 'test'
use ::Rack::Protection, :use => :authenticity_token unless ENV['RACK_ENV'] == 'test'

set :root, File.expand_path(File.dirname(__FILE__) + "/../../web")
set :public_folder, proc { "#{root}/assets" }
Expand Down

0 comments on commit 7f88278

Please sign in to comment.