aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-10-11 13:43:15 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-10-11 13:43:15 +0200
commite0e100e97d979806ab75083d33cfda76fd147607 (patch)
tree0734e99e67f4c2135d3d01ae38e06dab47ac38bd /sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb
parent7882670c66a5313959c4b8af071953139e718afe (diff)
downloadsonarqube-e0e100e97d979806ab75083d33cfda76fd147607.tar.gz
sonarqube-e0e100e97d979806ab75083d33cfda76fd147607.zip
SONAR-4716 Remove Technical Debt MyBatis classes and replace it by Rails
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb
index 252d269021f..acfa831fc8e 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb
@@ -97,4 +97,20 @@ class Characteristic < ActiveRecord::Base
default_value
end
end
+
+
+ ### For Requirement
+
+ def function
+ property(CharacteristicProperty::PROPERTY_REMEDIATION_FUNCTION)
+ end
+
+ def factor
+ property(CharacteristicProperty::PROPERTY_REMEDIATION_FACTOR)
+ end
+
+ def offset
+ property(CharacteristicProperty::PROPERTY_OFFSET)
+ end
+
end