summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/cve_helper.rb')
-rw-r--r--app/helpers/cve_helper.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/helpers/cve_helper.rb b/app/helpers/cve_helper.rb
deleted file mode 100644
index 174603f..0000000
--- a/app/helpers/cve_helper.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-module CveHelper
- # Converts a bit mask to a condition usable by AR
- def view_mask_to_condition(mask)
- conditions = []
-
- conditions << 'state = "NEW"' if mask & 1 == 1
- conditions << 'state = "ASSIGNED"' if mask & 2 == 2
- conditions << 'state = "LATER"' if mask & 4 == 4
- conditions << 'state = "NFU"' if mask & 8 == 8
- conditions << 'state = "INVALID"' if mask & 16 == 16
-
- conditions.join(' OR ')
- end
-end