Skip to content

Instantly share code, notes, and snippets.

@gofullstack
Created January 22, 2010 16:31
Show Gist options
  • Save gofullstack/283885 to your computer and use it in GitHub Desktop.
Save gofullstack/283885 to your computer and use it in GitHub Desktop.
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
@flazz
Copy link

flazz commented Aug 17, 2010

i also had to use line 18 to make my app load. i'm using sinatra 1.0 on osx with bundler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment