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.2 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.4.24 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.23 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.5.1 components/indefinido/indemma/master/lib/record/validations/confirmation.js
ende-0.4.22 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.21 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.5.0 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.20 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.19 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.18 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.17 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.16 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.15 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.14 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.13 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.12 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.11 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.10 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.9 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js
ende-0.4.8 vendor/components/indefinido-indemma/lib/record/validations/confirmation.js