Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/couchrest/model/support/hash.rb

Overview

This file contains various hacks for Rails compatibility.

Class Method Summary collapse

Class Method Details

.===(other) ⇒ Object

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/model/support/hash.rb', line 5

def self.===(other)
  return false if self == Hash && other.is_a?(CouchRest::Document)
  super
end