Commit 8ce4e15829e33159908603d88e4f264116a2ab39
1 parent
d89230cf
Exists in
master
and in
1 other branch
App: use unresolved_count method
Keepin it DRY.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/api/v1/stats_controller.rb
| ... | ... | @@ -13,7 +13,7 @@ class Api::V1::StatsController < ApplicationController |
| 13 | 13 | stats = { |
| 14 | 14 | :name => @app.name, |
| 15 | 15 | :last_error_time => @last_error_time, |
| 16 | - :unresolved_errors => @app.problems.unresolved.count | |
| 16 | + :unresolved_errors => @app.unresolved_count | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | respond_to do |format| | ... | ... |