diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-04-12 16:09:20 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-04-12 16:09:20 +0200 |
commit | 14391ca425400c91afd08bc9e16ca2bf34b41f14 (patch) | |
tree | c56bfe507e710dbc56cd542d51ca8fc7232bc75f /sonar-server/src/main/webapp/WEB-INF | |
parent | 918a9b1b1dab504a74c00b6316a2a9bb209c3a24 (diff) | |
download | sonarqube-14391ca425400c91afd08bc9e16ca2bf34b41f14.tar.gz sonarqube-14391ca425400c91afd08bc9e16ca2bf34b41f14.zip |
Add the Ruby on Rails association ProjectMeasure#person
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb index 01f6542dfee..10c3a136c78 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb @@ -29,6 +29,7 @@ class ProjectMeasure < ActiveRecord::Base belongs_to :rule belongs_to :project belongs_to :characteristic + belongs_to :person, :class_name => 'Project', :foreign_key => 'person_id' has_one :measure_data, :class_name => 'MeasureData', :foreign_key => 'measure_id' def metric |