Sha256: 07dae48076092671c50c58a0b974f150c66b3fba53bb6a7df1d143d85c9d686a
Contents?: true
Size: 515 Bytes
Versions: 48
Compression:
Stored size: 515 Bytes
Contents
var composed, confirmationable, stampit; stampit = require('../../../vendor/stampit'); confirmationable = stampit({ validate_each: function(record, attribute, value) { if (record[attribute] !== record["" + attribute + "_confirmation"]) { return record.errors.add("" + attribute + "_confirmation", 'confirmation', this.options); } } }); composed = stampit.compose(require('./validatorable'), confirmationable); composed.definition_key = 'validates_confirmation_of'; module.exports = composed;
Version data entries
48 entries across 48 versions & 1 rubygems