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

@ -5,10 +5,10 @@ module CouchRest
include CouchRest::Mixins::Attachments
# def self.inherited(subklass)
# subklass.send(:class_inheritable_accessor, :database)
# subklass.send(:extlib_inheritable_accessor, :database)
# end
class_inheritable_accessor :database
extlib_inheritable_accessor :database
attr_accessor :database
# override the CouchRest::Model-wide default_database