Class: Hash
Overview
This file contains various hacks for Rails compatibility.
Class Method Summary (collapse)
-
+ (Object) ===(other)
Hack so that CouchRest::Document, which descends from Hash, doesn't appear to Rails routing as a Hash of options.
Class Method Details
+ (Object) ===(other)
Hack so that CouchRest::Document, which descends from Hash, doesn't appear to Rails routing as a Hash of options
5 6 7 8 |
# File 'lib/couchrest/support/rails.rb', line 5 def self.===(other) return false if self == Hash && other.is_a?(CouchRest::Document) super end |