Merge branch 'rep_quality' of https://git.trustie.net/jacknudt/trustieforge into rep_quality
This commit is contained in:
commit
ba6d0e6926
|
@ -238,7 +238,7 @@ class QualityAnalysisController < ApplicationController
|
||||||
@quality_analyses = QualityAnalysis.where(:project_id => @project.id).select{|qa| arr.include?(qa.sonar_name)}
|
@quality_analyses = QualityAnalysis.where(:project_id => @project.id).select{|qa| arr.include?(qa.sonar_name)}
|
||||||
else
|
else
|
||||||
languate_arr = ['ruby', 'c#', 'c++', 'c']
|
languate_arr = ['ruby', 'c#', 'c++', 'c']
|
||||||
qa_language = QualityAnalysis.where(:sonar_name => @resource_id).first.try(language)
|
qa_language = QualityAnalysis.where(:sonar_name => @resource_id).first.try(:language)
|
||||||
if !qa_language.blank? && languate_arr.include?(qa_language)
|
if !qa_language.blank? && languate_arr.include?(qa_language)
|
||||||
@language_flag = true
|
@language_flag = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue