From 25ba9728896c76f983d1cbc4be75f3fb3b578513 Mon Sep 17 00:00:00 2001
From: Paul van Tilburg
Date: Mon, 21 Jun 2010 19:38:37 +0200
Subject: [PATCH] Get rid of the stupid constant redefine warnings.
---
anne-survey.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/anne-survey.rb b/anne-survey.rb
index 11173d5..6996778 100644
--- a/anne-survey.rb
+++ b/anne-survey.rb
@@ -7,8 +7,10 @@ Markaby::Builder.set(:indent, 2)
Camping.goes :Anne
-PUBLIC_DIR = Pathname.new(__FILE__).dirname + "public"
-IMAGE_DIR = PUBLIC_DIR + "images"
+unless defined? PUBLIC_DIR
+ PUBLIC_DIR = Pathname.new(__FILE__).dirname + "public"
+ IMAGE_DIR = PUBLIC_DIR + "images"
+end
module Anne