This commit is contained in:
Vokhmin Alexey V 2013-02-15 16:00:34 +04:00
parent 69d384412e
commit befbf7e85a
1 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,9 @@ class Projects::BaseController < ApplicationController
end end
def init_statistics def init_statistics
@opened_issues_count = @project.issues.without_pull_requests.not_closed_or_merged.count if @project
@opened_pull_requests_count = @project.issues.joins(:pull_request).not_closed_or_merged.count @opened_issues_count = @project.issues.without_pull_requests.not_closed_or_merged.count
@opened_pull_requests_count = @project.issues.joins(:pull_request).not_closed_or_merged.count
end
end end
end end