Permalink
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...
1 parent a2f5803 commit 37cba5c70e1ef225c8bfab3e19285ce8ab16b1a4 @bmizerany bmizerany committed Feb 18, 2009
Showing with 0 additions and 23 deletions.
  1. +0 −23 lib/sinatra/base.rb
View
@@ -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

0 comments on commit 37cba5c

Please sign in to comment.