From 0ec9be1302badbb39c4d9e6d9166584aabab914d Mon Sep 17 00:00:00 2001 From: Godin Date: Wed, 1 Dec 2010 13:19:46 +0000 Subject: SONAR-1450: * Expose rule_failure.created_at in rest api * Support createdAt in sonar-ws-client --- sonar-server/src/main/webapp/WEB-INF/app/models/rule_failure.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sonar-server') diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/rule_failure.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/rule_failure.rb index 4ed4d7311fb..181b4332bf3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/rule_failure.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/rule_failure.rb @@ -28,7 +28,7 @@ class RuleFailure < ActiveRecord::Base json['message'] = message json['line'] = line if line json['priority'] = Sonar::RulePriority.to_s(failure_level).upcase - json['createdAt'] = format_datetime(created_at) + json['createdAt'] = format_datetime(created_at) if created_at json['rule'] = { :key => rule.key, :name => rule.name} @@ -46,7 +46,7 @@ class RuleFailure < ActiveRecord::Base xml.message(message) xml.line(line) if line xml.priority(Sonar::RulePriority.to_s(failure_level)) - xml.createdAt(format_datetime(created_at)) + xml.createdAt(format_datetime(created_at)) if created_at xml.rule do xml.key(rule.key) xml.name(rule.name) -- cgit v1.2.3