summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-22 08:18:15 -0700
committermo khan <mo@mokhan.ca>2014-02-22 08:18:15 -0700
commit1de5ac98002e9057bd5a163deb93f630464185fc (patch)
treec8b0830ca99c6c754d0d2a10a6154063c03dcb0e /app/models
parentba07bb7f1ea83845cfd8e0fdae5f860087147b5c (diff)
pretty print the active status name.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/license_status/active.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/license_status/active.rb b/app/models/license_status/active.rb
index aea5652..864ee1a 100644
--- a/app/models/license_status/active.rb
+++ b/app/models/license_status/active.rb
@@ -5,7 +5,11 @@ class LicenseStatus::Active
end
def matches?(name)
- "active" == name
+ to_s == name
+ end
+
+ def to_s
+ 'active'
end
end