summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-22 08:19:33 -0700
committermo khan <mo@mokhan.ca>2014-02-22 08:19:33 -0700
commit224eef2913cba14d052554ff6276680ba62d6430 (patch)
tree7dacc33b1bc4823f5b1ee5f62da1acc318e11746 /app/models
parent1de5ac98002e9057bd5a163deb93f630464185fc (diff)
pretty print the expired status.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/license_status/expired.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/license_status/expired.rb b/app/models/license_status/expired.rb
index 393e34f..adbc3fb 100644
--- a/app/models/license_status/expired.rb
+++ b/app/models/license_status/expired.rb
@@ -5,6 +5,10 @@ class LicenseStatus::Expired
end
def matches?(name)
- "expired" == name
+ to_s == name
+ end
+
+ def to_s
+ 'expired'
end
end