From 381b9cb22d00c87ecb106bfb9c4f393b4d08adf4 Mon Sep 17 00:00:00 2001 From: Magnus Holm Date: Sun, 21 Feb 2010 18:27:18 +0100 Subject: [PATCH] Attempt at 1.9 support (thanks babalela!) --- lib/camping-unabridged.rb | 2 +- lib/camping.rb | 4 ++-- lib/camping/reloader.rb | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/camping-unabridged.rb b/lib/camping-unabridged.rb index 8466002..7006c04 100644 --- a/lib/camping-unabridged.rb +++ b/lib/camping-unabridged.rb @@ -76,7 +76,7 @@ class H < Hash def method_missing(m,*a) m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m.to_s]:super end - undef id, type + undef id, type if ?? == 63 end # Helpers contains methods available in your controllers and views. You may diff --git a/lib/camping.rb b/lib/camping.rb index 60b196f..6e62a61 100644 --- a/lib/camping.rb +++ b/lib/camping.rb @@ -3,12 +3,12 @@ S=IO.read(__FILE__)rescue nil;P="

Cam\ping Problem!

%s

" U=Rack::Utils;Apps=[];class H