Sha256: dbf9c501fe9c0c09e4988dd37d8add26a401c537fa7fe795c93f3f58b0b8d01b
Contents?: true
Size: 267 Bytes
Versions: 48
Compression:
Stored size: 267 Bytes
Contents
module Neo4j module Rails module Validations class NonNilValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) record.errors.add(attribute, :nil, options.merge(:value => value)) if value.nil? end end end end end
Version data entries
48 entries across 48 versions & 1 rubygems