fixed an inheritance problem with ExtendedDocument subclasses

This commit is contained in:
Matt Aimonetti 2009-03-27 11:11:49 -07:00
parent 9c46546b39
commit 661daac473
2 changed files with 1 additions and 4 deletions

View file

@ -6,9 +6,6 @@ module CouchRest
def self.included(base)
base.extend(ClassMethods)
base.send(:extlib_inheritable_accessor, :design_doc)
base.send(:extlib_inheritable_accessor, :design_doc_slug_cache)
base.send(:extlib_inheritable_accessor, :design_doc_fresh)
end
module ClassMethods

View file

@ -9,7 +9,7 @@ module CouchRest
def self.included(base)
base.class_eval <<-EOS, __FILE__, __LINE__
extlib_inheritable_accessor(:properties)
extlib_inheritable_accessor(:properties) unless self.respond_to?(:properties)
self.properties ||= []
EOS
base.extend(ClassMethods)