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

Version Path
ende-0.5.22 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.21 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.20 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.19 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.18 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.17 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.16 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.15 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.14 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.13 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.12 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.10 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.9 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.8 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.7 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.6 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.4.25 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.5.5 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.4 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.5.3 components/indefinido/indemma/master/lib/record/validations/confirmation.js