Skip to content

Commit dd2fab5

Browse files
committed
Merge branch '379-enforce-single-taxonomy-category-if-allow_multiple-is-false-test' of https://github.com/impactoss/impactoss-server into 379-enforce-single-taxonomy-category-if-allow_multiple-is-false-test
2 parents c4379e0 + 8e60d31 commit dd2fab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/measure_category.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def single_category_per_taxonomy
4545
measure_id: measure_id
4646
)
4747

48-
if existing_categories.count >=1
48+
if existing_categories.count >= 1
4949
errors.add(:category, "This measure already has a category in the same taxonomy. Multiple categories are not allowed for the taxonomy.")
5050
end
5151
end

0 commit comments

Comments
 (0)