don't allow rubric title suffix to bypass length validation

closes #CNVS-30700

Change-Id: Ied13bd9462eca40ec992eaa1425378ea93cd4d6c
Reviewed-on: https://gerrit.instructure.com/86683
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
This commit is contained in:
James Williams 2016-08-02 10:48:31 -06:00
parent 697a1c4562
commit 892307a80d
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Rubric < ActiveRecord::Base
validates_length_of :description, :maximum => maximum_text_length, :allow_nil => true, :allow_blank => true
validates_length_of :title, :maximum => maximum_string_length, :allow_nil => true, :allow_blank => true
before_save :default_values
before_validation :default_values
after_save :update_alignments
after_save :touch_associations