From 8ce4e15829e33159908603d88e4f264116a2ab39 Mon Sep 17 00:00:00 2001 From: Daniel Beardsley Date: Sun, 10 Mar 2013 01:33:54 -0700 Subject: [PATCH] App: use unresolved_count method --- app/controllers/api/v1/stats_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/stats_controller.rb b/app/controllers/api/v1/stats_controller.rb index 653ae0a..fe28ec8 100644 --- a/app/controllers/api/v1/stats_controller.rb +++ b/app/controllers/api/v1/stats_controller.rb @@ -13,7 +13,7 @@ class Api::V1::StatsController < ApplicationController stats = { :name => @app.name, :last_error_time => @last_error_time, - :unresolved_errors => @app.problems.unresolved.count + :unresolved_errors => @app.unresolved_count } respond_to do |format| -- libgit2 0.21.2