]> source.dussan.org Git - sonarqube.git/commitdiff
Add the Ruby on Rails association ProjectMeasure#person
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Apr 2012 14:09:20 +0000 (16:09 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Apr 2012 14:09:20 +0000 (16:09 +0200)
sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb

index 01f6542dfee26647f06edfa4154f9f56a964dd9b..10c3a136c78e08b39c6ece184df2ff652e6a3d2a 100644 (file)
@@ -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