Permalink
Browse files

bug with nil count

  • Loading branch information...
1 parent d7fbdcf commit 9a8baed2ef5f734efbff4a0d92ff6cead8340604 @drhenner committed Sep 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/validation_issue.rb
@@ -21,7 +21,7 @@ def increment_success_count!
end
def total_count
- success_count + issue_count
+ (success_count || 0) + (issue_count || 0)
end
protected

0 comments on commit 9a8baed

Please sign in to comment.