Sha256: 4e6219ee1901146a8db1049e0256243d24e0e99de7d302dc1a952b14cf429faa
Contents?: true
Size: 362 Bytes
Versions: 105
Compression:
Stored size: 362 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Matchers #:nodoc: class Exists < Default # Return true if the attribute exists and checking for existence or # return true if the attribute does not exist and checking for # non-existence. def matches?(value) @attribute.nil? != value.values.first end end end end
Version data entries
105 entries across 105 versions & 12 rubygems