summaryrefslogtreecommitdiff
path: root/app/models/license_status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/license_status.rb')
-rw-r--r--app/models/license_status.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/license_status.rb b/app/models/license_status.rb
index 998792f..41b54c5 100644
--- a/app/models/license_status.rb
+++ b/app/models/license_status.rb
@@ -5,7 +5,7 @@ class LicenseStatus
ALL=[ACTIVE, EXPIRED, CONFIDENTIAL]
- def self.find_match(status)
- ACTIVE
+ def self.find_match(status = "")
+ ALL.find { |x| x.matches?("#{status}".downcase) } || ACTIVE
end
end