Sha256: e39d59cdeaa4c30c3711dce1af00623caee7e040079797a62053b07d6f6350e5
Contents?: true
Size: 545 Bytes
Versions: 30
Compression:
Stored size: 545 Bytes
Contents
# TODO Add base settings to validation # model = window.model # TODO implement method # model[resource].validators_on 'field' # Get all validators related to this field stampit = require '../../../vendor/stampit' presenceable = stampit validate_each: (record, attribute, value) -> if value == null or value == '' or value == undefined record.errors.add attribute, 'blank', @options composed = stampit.compose require('./validatorable'), presenceable composed.definition_key = 'validates_presence_of' module.exports = composed
Version data entries
30 entries across 30 versions & 1 rubygems