fixed an inheritance problem with ExtendedDocument subclasses
This commit is contained in:
parent
9c46546b39
commit
661daac473
2 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue