Sha256: 8dc4ad7baba12d876de00c4eb9f6709eb842049698557a30aa69f9d842c823fd
Contents?: true
Size: 589 Bytes
Versions: 30
Compression:
Stored size: 589 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' confirmationable = stampit validate_each: (record, attribute, value) -> if record[attribute] != record["#{attribute}_confirmation"] record.errors.add "#{attribute}_confirmation", 'confirmation', @options composed = stampit.compose require('./validatorable'), confirmationable composed.definition_key = 'validates_confirmation_of' module.exports = composed
Version data entries
30 entries across 30 versions & 1 rubygems