Skip to content

Instantly share code, notes, and snippets.

@pier-oliviert
Forked from anonymous/gist:7215813
Last active December 26, 2015 21:28
Show Gist options
  • Save pier-oliviert/7215955 to your computer and use it in GitHub Desktop.
Save pier-oliviert/7215955 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
include Redis::Objects
counter :reminders_to_send
def purge
@@redis_objects = {}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment