Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

set :public is no longer used as of sinatra (1.3.0) #1

Merged
merged 1 commit into from

2 participants

@culvr

No description provided.

@cjheath cjheath merged commit 07305e4 into cjheath:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 28, 2011
  1. :public is no longer used to avoid overloading Module#public, use :pu…

    Andrew Culver authored
    …blic_folder instead
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 chat_server/chat_server.rb
View
4 chat_server/chat_server.rb
@@ -17,7 +17,7 @@ class Bayeux::Client
class ChatServer < Bayeux
configure do
- set :public, File.dirname(__FILE__)+'/../chat_demo'
+ set :public_folder, File.dirname(__FILE__)+'/../chat_demo'
# set :tracing, true # Enable to get Bayeux tracing
end
@@ -26,7 +26,7 @@ class ChatServer < Bayeux
end
get '/chat' do
- send_file settings.public+'/index.html'
+ send_file settings.public_folder+'/index.html'
end
def send_client_list
Something went wrong with that request. Please try again.