Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Jul 16, 2024
1 parent 83a3cee commit 3fb0ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/fact_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FactCheck < ApplicationRecord

belongs_to :claim_description

before_validation :set_initial_rating, on: :create, if: proc { |fc| fc.rating.blank? }
before_validation :set_initial_rating, on: :create, if: proc { |fc| fc.rating.blank? && fc.claim_description.present? }
before_validation :set_language, on: :create, if: proc { |fc| fc.language.blank? }
before_validation :set_imported, on: :create

Expand Down

0 comments on commit 3fb0ed9

Please sign in to comment.