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-1.1.0.beta2 lib/couchrest/model/core_extensions/hash.rb
couchrest_model-1.1.0.beta lib/couchrest/model/support/hash.rb
couchrest_model-1.0.0 lib/couchrest/model/support/hash.rb
couchrest_model-radiant-1.0.0 lib/couchrest/model/support/hash.rb
couchrest_model-1.0.0.beta8 lib/couchrest/model/support/hash.rb
couchrest_model_thought-1.0.0.beta9 lib/couchrest/model/support/hash.rb
couchrest_model_thought-1.0.0.beta8 lib/couchrest/model/support/hash.rb
couchrest_model-1.0.0.beta7 lib/couchrest/model/support/hash.rb