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:
parent
697a1c4562
commit
892307a80d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue