Namespace Extlib versions of class_inheritable_accessor methods with extlib_prefix, as done in Wycats' Rails fork, so that their inclusion won't overwrite existing ActiveSupport implementations, if present. Check for existence of Class extensions on a per-method basis.

This commit is contained in:
Geoff Buesing 2009-03-19 12:50:58 -05:00 committed by Matt Aimonetti
parent de0476b083
commit a1a4985149
5 changed files with 148 additions and 222 deletions

View file

@ -4,9 +4,9 @@ module CouchRest
def self.included(base)
base.extend(ClassMethods)
base.send(:class_inheritable_accessor, :design_doc)
base.send(:class_inheritable_accessor, :design_doc_slug_cache)
base.send(:class_inheritable_accessor, :design_doc_fresh)
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