Sha256: f25ed040c87e7f4ffc02f00acb6edca0799d87d17f2bbbdf5a5e90bb478c41cd
Contents?: true
Size: 305 Bytes
Versions: 4
Compression:
Stored size: 305 Bytes
Contents
module ActiveRecordSurvey # Ensure the instance_node has a length less than the maximum class NodeValidation::MaximumLength < NodeValidation # Validate the instance_node value def validate_instance_node(instance_node, node = nil) instance_node.value.to_s.length <= self.value.to_i end end end
Version data entries
4 entries across 4 versions & 1 rubygems