From 19c68f8ad4ff9f47942c822bc47509dd71273386 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Sun, 27 Mar 2011 18:02:37 +0200 Subject: [PATCH] setup up content-for properly --- sinatra-contrib/lib/sinatra/content_for.rb | 2 ++ sinatra-contrib/lib/sinatra/contrib.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/sinatra-contrib/lib/sinatra/content_for.rb b/sinatra-contrib/lib/sinatra/content_for.rb index c6cd0e76..039b2218 100644 --- a/sinatra-contrib/lib/sinatra/content_for.rb +++ b/sinatra-contrib/lib/sinatra/content_for.rb @@ -1,3 +1,5 @@ +require 'sinatra/base' + module Sinatra ## # Small extension for the Sinatra[http://sinatrarb.com] web framework diff --git a/sinatra-contrib/lib/sinatra/contrib.rb b/sinatra-contrib/lib/sinatra/contrib.rb index 5325d54e..504d87db 100644 --- a/sinatra-contrib/lib/sinatra/contrib.rb +++ b/sinatra-contrib/lib/sinatra/contrib.rb @@ -11,6 +11,7 @@ module Sinatra register :Decompile register :Namespace register :RespondWith + helpers :ContentFor helpers :LinkHeader end