Skip to content

Commit

Permalink
Close #613
Browse files Browse the repository at this point in the history
  • Loading branch information
thesecretmaster committed Jun 17, 2019
1 parent 06e8767 commit 24888f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/feedback.rb
Expand Up @@ -37,6 +37,13 @@ def populate_redis
}
end

after_destroy :destroy_redis

def destroy_redis
redis.srem "post/#{post.id}/feedbacks", id.to_s
redis.del "feedbacks/#{id}"
end

def self.populate_redis_meta
keys = []
prefix = 'feedbacks_populate'
Expand Down

0 comments on commit 24888f7

Please sign in to comment.