DEV: Fix failing spec.

This commit is contained in:
Guo Xiang Tan
2019-04-23 18:25:21 +08:00
parent 97dcd50e51
commit d07605d885
3 changed files with 6 additions and 4 deletions

View File

@ -27,7 +27,7 @@ class UserBadge < ActiveRecord::Base
private
def single_grant_badge?
self.badge.single_grant?
self.badge ? self.badge.single_grant? : true
end
end