don't try to translate when loading code
delay it until an error happens fixes CNVS-33882 test plan - make a new root_account on a new shard - it should succeed Change-Id: I51f9dbb52d69c82eb8bc1838144f1683f7d7e110 Reviewed-on: https://gerrit.instructure.com/97620 Tested-by: Jenkins Reviewed-by: Cody Cutrer <cody@instructure.com> Product-Review: Rob Orton <rob@instructure.com> QA-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
parent
a09f82c7b4
commit
0e18d33f2d
|
@ -28,7 +28,10 @@ module Polling
|
|||
validates_presence_of :poll, :poll_choice, :poll_session, :user
|
||||
validates_uniqueness_of :user_id,
|
||||
scope: :poll_session_id,
|
||||
message: I18n.t('polling.poll_submissions.validations.user_and_poll_session_uniqueness', 'can only submit one choice per poll session.')
|
||||
message: -> { t(
|
||||
'polling.poll_submissions.validations.user_and_poll_session_uniqueness',
|
||||
'can only submit one choice per poll session.'
|
||||
) }
|
||||
|
||||
validate :poll_choices_belong_to_poll
|
||||
validate :poll_is_published
|
||||
|
|
Loading…
Reference in New Issue