Update app/models/champs/rna_champ.rb
Co-authored-by: Paul Chavard <paul.chavard@beta.gouv.fr>
This commit is contained in:
parent
f30798eeec
commit
0e995c8bcc
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
class Champs::RNAChamp < Champ
|
||||
validates :value, allow_blank: true, format: {
|
||||
with: /\AW[0-9]{9}\z/, message: I18n.t(:not_a_rna, scope: 'activerecord.errors.messages')
|
||||
}
|
||||
}, if: -> { validation_context != :brouillon }
|
||||
|
||||
delegate :id, to: :procedure, prefix: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue