Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing the Sinatra() sugar for now...

It's apparent the first revision of this has it's
implications on reloading and other areas and their
fixes are adding to much LOC.  Let's revisit this
in time.
  • Loading branch information...
commit 37cba5c70e1ef225c8bfab3e19285ce8ab16b1a4 1 parent a2f5803
@bmizerany bmizerany authored
Showing with 0 additions and 23 deletions.
  1. +0 −23 lib/sinatra/base.rb
View
23 lib/sinatra/base.rb
@@ -980,26 +980,3 @@ class String #:nodoc:
# earlier.
alias_method :bytesize, :length unless ''.respond_to? :bytesize
end
-
-class Rack::Builder
- ## Sugar to include a classic style app in a rackup.
- ##
- ## This will eval the source into a Sinatra::Default class
- ## Example:
- ##
- ## require 'sinatra/base'
- ##
- ## map '/foo' do
- ## run Sinatra("foo.rb")
- ## end
- ##
- ## run Sinatra("bar.rb")
- ##
- def Sinatra(file, base=Sinatra::Default)
- Sinatra.new(base) do
- expanded = File.expand_path(file)
- self.class_eval { set :app_file, expanded }
- self.class_eval(File.read(expanded), expanded)
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.