initiatived21/d21

View on GitHub
client/app/lib/form_objects/new_answer_form.js

Summary

Maintainability
A
1 hr
Test Coverage
import { FormObject } from 'rform'

export default class NewAnswerFormObject extends FormObject {
  static get properties() {
    return [
      'response'
    ]
  }

  static get model() {
    return 'comment'
  }

  validation() {
    this.required('response').filled({'max_size?': 650})
  }
}