chore(rubocop): fix Rails/RedundantPresenceValidationOnBelongsTo
This commit is contained in:
parent
6eec42135d
commit
f4ad5289cd
1 changed files with 0 additions and 1 deletions
|
@ -42,7 +42,6 @@ class Avis < ApplicationRecord
|
||||||
size: { less_than: FILE_MAX_SIZE }
|
size: { less_than: FILE_MAX_SIZE }
|
||||||
|
|
||||||
validates :email, format: { with: Devise.email_regexp, message: "n'est pas valide" }, allow_nil: true
|
validates :email, format: { with: Devise.email_regexp, message: "n'est pas valide" }, allow_nil: true
|
||||||
validates :claimant, presence: true
|
|
||||||
validates :question_answer, inclusion: { in: [true, false] }, on: :update, if: -> { question_label.present? }
|
validates :question_answer, inclusion: { in: [true, false] }, on: :update, if: -> { question_label.present? }
|
||||||
validates :piece_justificative_file, size: { less_than: FILE_MAX_SIZE }
|
validates :piece_justificative_file, size: { less_than: FILE_MAX_SIZE }
|
||||||
validates :introduction_file, size: { less_than: FILE_MAX_SIZE }
|
validates :introduction_file, size: { less_than: FILE_MAX_SIZE }
|
||||||
|
|
Loading…
Reference in a new issue