I have a badge rule like this;
grant_on 'comments#create', badge: 'frequent-commenter', to: :user, temporary: true do |comment|
comment.user.comments.where(:created_at.gte => (Date.today - 30)).count >= 20
end
User will lose the badge after sent a comment. But s/he will have the badge forever if s/he doesn't send a comment.
Is it possible to check temporary badges and remove the ones which are not valid anymore?