Sha256: 3f38da0269934b4f7865087fb3b362bb53277cba1531cec257b1974aec1a7cdd
Contents?: true
Size: 264 Bytes
Versions: 105
Compression:
Stored size: 264 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Matchers #:nodoc: class All < Default # Return true if the attribute and first value in the hash are equal. def matches?(value) @attribute == value.values.first end end end end
Version data entries
105 entries across 105 versions & 12 rubygems