Skip to content

Commit

Permalink
Adaptation du ransacker avec le refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bricedurand committed Aug 25, 2023
1 parent 15068f1 commit a179383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/concerns/communes/include_counts_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def self.include_recensements_prioritaires_count
CASE
WHEN recensements_prioritaires.en_peril_count > 0 AND recensements_prioritaires.disparus_count > 0
THEN 'peril_disparu'
WHEN recensements_prioritaires.en_peril_count > 0 AND recensements_prioritaires.disparus_count IS NULL
WHEN recensements_prioritaires.en_peril_count > 0 AND recensements_prioritaires.disparus_count = 0
THEN 'peril'
WHEN recensements_prioritaires.en_peril_count IS NULL AND recensements_prioritaires.disparus_count > 0
WHEN recensements_prioritaires.en_peril_count = 0 AND recensements_prioritaires.disparus_count > 0
THEN 'disparu'
ELSE NULL
END).squish)
Expand Down

0 comments on commit a179383

Please sign in to comment.