Class: Hash

Inherits:
Object show all
Defined in:
lib/couchrest/support/rails.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/support/rails.rb', line 5

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