9 lines
303 B
Ruby
9 lines
303 B
Ruby
# This file contains various hacks for Rails compatibility.
|
|
class Hash
|
|
# Hack so that CouchRest::Document, which descends from Hash,
|
|
# doesn't appear to Rails routing as a Hash of options
|
|
def self.===(other)
|
|
return false if self == Hash && other.is_a?(CouchRest::Document)
|
|
super
|
|
end
|
|
end
|