Sha256: 9be3f70841fe6771176d94d322ed1222b8d98ff3dd5480d3f2a67ec8964a4fb1

Contents?: true

Size: 303 Bytes

Versions: 28

Compression:

Stored size: 303 Bytes

Contents

# 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

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
couchrest_model-2.2.0.beta2 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.2.0.beta1 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.1.0.rc1 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.1.0.beta2 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.1.0.beta1 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.0.4 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.0.3 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.0.1 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.0.0 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.0.0.beta2 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-2.0.0.beta lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.2.0.beta lib/couchrest/model/core_extensions/hash.rb
openlogic-couchrest_model-1.0.0 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.2 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.1 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.0 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.0.rc1 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.0.beta5 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.0.beta4 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.0.beta3 lib/couchrest/model/core_extensions/hash.rb