Created
January 22, 2010 16:31
-
-
Save gofullstack/283885 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 613a3b807e97629f99bbe5ce2b33da5fe85a1afe Mon Sep 17 00:00:00 2001 | |
From: Colin Curtin <colin.t.curtin@gmail.com> | |
Date: Fri, 22 Jan 2010 08:30:27 -0800 | |
Subject: [PATCH] Make mount available in Object scope. | |
--- | |
lib/sinatras-hat/extendor.rb | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/lib/sinatras-hat/extendor.rb b/lib/sinatras-hat/extendor.rb | |
index d7b684e..82cf252 100644 | |
--- a/lib/sinatras-hat/extendor.rb | |
+++ b/lib/sinatras-hat/extendor.rb | |
@@ -22,3 +22,4 @@ module Sinatra | |
end | |
Sinatra::Base.extend(Sinatra::Hat::Extendor) | |
+Sinatra::Delegator.delegate(:mount) | |
\ No newline at end of file | |
-- | |
1.6.5.2+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i also had to use line 18 to make my app load. i'm using sinatra 1.0 on osx with bundler