summaryrefslogtreecommitdiff
path: root/app/models/token.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/token.rb')
-rw-r--r--app/models/token.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/token.rb b/app/models/token.rb
index 4856c31..e759ee3 100644
--- a/app/models/token.rb
+++ b/app/models/token.rb
@@ -30,6 +30,10 @@ class Token < CouchRest::Model::Base
end
end
+ def to_s
+ id
+ end
+
def authenticate
if expired?
destroy