Permalink
Browse files

code no longer necessary, as files now live in seperate repositories/…

…gems
  • Loading branch information...
rkh committed Feb 12, 2010
1 parent e060c16 commit b88049ea5f47a3ed052cb74c07ea492d25720b75
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/sinatra/sugar.rb
View
@@ -3,18 +3,13 @@
module Sinatra
- CALLERS_TO_IGNORE = (class << Sinatra::Base; CALLERS_TO_IGNORE; end) unless defined? CALLERS_TO_IGNORE
- Dir.chdir __FILE__.dirname.dirname do
- Dir.glob("**/*.rb") { |file| CALLERS_TO_IGNORE << Regexp.new(Regexp.escape(file)) }
- end
-
# Basic Sinatra extension (mainly extending Sinatra's standard methods, like set or register).
# Also it features a more advanced path guessing than Sinatra::Base.
# Normally you do not have to register this module manually, as the other extensions will do so
# if necessary.
module Sugar
module BaseMethods
- ::Sinatra::Base.extend self
+ Base.extend self
def callers_to_ignore
class << Sinatra::Base
@@ -192,6 +187,7 @@ def self.set_app_file(klass)
end
+ Base.ignore_caller
register Sugar
end

0 comments on commit b88049e

Please sign in to comment.