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:
parent
de0476b083
commit
a1a4985149
5 changed files with 148 additions and 222 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue