aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-01-20 10:56:56 +0100
committerFabrice Bellingard <bellingard@gmail.com>2012-01-23 19:23:18 +0100
commit2044f95a1c1064f2cde28df0c33af633fdd8d8a2 (patch)
tree04dd4aac0e07726d417d4bded646ba0e7c455f62 /sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb
parent2095f5221c41f4df2b3d19b1f880181a092ffc99 (diff)
downloadsonarqube-2044f95a1c1064f2cde28df0c33af633fdd8d8a2.tar.gz
sonarqube-2044f95a1c1064f2cde28df0c33af633fdd8d8a2.zip
SONAR-1492 Allow notes per quality rule
=> DB stuff & Ruby models implemented
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb
index 78691867b8f..72d5ee07cd5 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/profile.rb
@@ -24,7 +24,7 @@ class Profile < ActiveRecord::Base
has_many :active_rules, :class_name => 'ActiveRule', :foreign_key => 'profile_id', :dependent => :destroy, :include => ['rule']
has_many :projects, :order => 'name asc'
has_many :active_rules_with_params, :class_name => 'ActiveRule', :foreign_key => 'profile_id',
- :include => ['active_rule_parameters']
+ :include => ['active_rule_parameters', 'active_rule_note']
validates_uniqueness_of :name, :scope => :language, :case_sensitive => false
validates_presence_of :name