diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 08:18:15 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 08:18:15 -0700 |
| commit | 1de5ac98002e9057bd5a163deb93f630464185fc (patch) | |
| tree | c8b0830ca99c6c754d0d2a10a6154063c03dcb0e /app | |
| parent | ba07bb7f1ea83845cfd8e0fdae5f860087147b5c (diff) | |
pretty print the active status name.
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/license_status/active.rb | 6 |
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 |
