ENH: Collection Edit (parity with reading) (#48)

This commit is contained in:
Matthew Ryan Dillon 2017-11-30 15:51:16 -07:00 committed by GitHub
parent bfae4422f4
commit cb3bc081a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 337 additions and 121 deletions

View file

@ -0,0 +1,12 @@
import {
validatePresence,
validateNumber,
} from 'ember-changeset-validations/validators';
export default {
sex: validatePresence(true),
count: validateNumber({ allowBlank: true, integer: true, positive: true }),
countEstimated: validatePresence(true),
species: validatePresence(true),
collection: validatePresence(true),
}