diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-11 13:43:15 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-11 13:43:15 +0200 |
commit | e0e100e97d979806ab75083d33cfda76fd147607 (patch) | |
tree | 0734e99e67f4c2135d3d01ae38e06dab47ac38bd /sonar-server/src/main/webapp/WEB-INF/app/models/characteristic.rb | |
parent | 7882670c66a5313959c4b8af071953139e718afe (diff) | |
download | sonarqube-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.rb | 16 |
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 |