Sha256: 64477e62033d6bbf60266587568e3200e83fc85dc43cd334fabee696a80be46b
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
# -*- encoding: utf-8 -*- require 'aequitas/rule/presence' module Aequitas class Rule class Presence class NotBlank < Presence def valid?(resource) !Aequitas.blank?(attribute_value(resource)) end def violation_type(resource) :blank end end # class NonNil end # class Presence end # class Rule end # module Aequitas
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aequitas-0.0.2 | lib/aequitas/rule/presence/not_blank.rb |
aequitas-0.0.1 | lib/aequitas/rule/presence/not_blank.rb |