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