Make the view count cookie names shorter

openid
Marcin Kulik 11 years ago
parent 97aa36e853
commit 9589df952f

@ -1,7 +1,7 @@
class ViewCounter
def increment(asciicast, storage)
key = :"asciicast_#{asciicast.id}_viewed"
key = "a#{asciicast.id}"
return if storage[key]
Asciicast.increment_counter(:views_count, asciicast.id)

Loading…
Cancel
Save