From 130fdd16dd160ef70e74ed7f08b28ceb17824c55 Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Mon, 8 Jun 2009 16:34:52 -1000 Subject: [PATCH] cosmetic cleanup --- lib/couchrest/support/rails.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/couchrest/support/rails.rb b/lib/couchrest/support/rails.rb index 021a4f3..41957d4 100644 --- a/lib/couchrest/support/rails.rb +++ b/lib/couchrest/support/rails.rb @@ -11,6 +11,7 @@ if defined?(Rails) end end + CouchRest::Document.class_eval do # Need this when passing doc to a resourceful route alias_method :to_param, :id @@ -49,4 +50,4 @@ if defined?(Rails) end end -end +end \ No newline at end of file