Skip to content

Commit

Permalink
fixed a bug that leads to broken counters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Friedrich committed Sep 1, 2017
1 parent f7db119 commit 33a5d6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/minuteman/counter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class Counter < ::Ohm::Model
attribute :lazy
class User < Counter
attribute :user_id

def key
"#{super}:#{user_id}"
end
end

def key
Expand Down

0 comments on commit 33a5d6f

Please sign in to comment.