Sha256: b225b19946d28d29fe00c11b7f1013d663a4529be06c7781a2dd111578476b68
Contents?: true
Size: 335 Bytes
Versions: 7
Compression:
Stored size: 335 Bytes
Contents
module ActiveRecordSurvey # Ensure the instance_node has a value greater than the minimum class NodeValidation::MinimumLength < NodeValidation # Validate the instance_node value is greater than the minimum def validate_instance_node(instance_node, node = nil) instance_node.value.to_s.length >= self.value.to_i end end end
Version data entries
7 entries across 7 versions & 1 rubygems