Hash#=== monkeypatch: don't add special behavior to subclasses, i.e. CouchRest documents
This commit is contained in:
parent
5f5aa06409
commit
ef3b0527c9
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Hash
|
||||||
# Hack so that CouchRest::Document, which descends from Hash,
|
# Hack so that CouchRest::Document, which descends from Hash,
|
||||||
# doesn't appear to Rails routing as a Hash of options
|
# doesn't appear to Rails routing as a Hash of options
|
||||||
def self.===(other)
|
def self.===(other)
|
||||||
return false if other.is_a?(CouchRest::Document)
|
return false if self == Hash && other.is_a?(CouchRest::Document)
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue