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

Commit

Permalink
Use Sinatra's public_folder if it exists
Browse files Browse the repository at this point in the history
Fixes resque#421. Fixes resque#420.
  • Loading branch information
defunkt committed Oct 21, 2011
1 parent 56ad1e7 commit 3080af3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/resque/server.rb
Expand Up @@ -13,7 +13,13 @@ class Server < Sinatra::Base
dir = File.dirname(File.expand_path(__FILE__))

set :views, "#{dir}/server/views"
set :public, "#{dir}/server/public"

if respond_to? :public_folder
set :public_folder, "#{dir}/server/public"
else
set :public, "#{dir}/server/public"
end

set :static, true

helpers do
Expand Down

0 comments on commit 3080af3

Please sign in to comment.