There was a section of code that was duplicating the logic in the name method.
Paired-with: Nick Lewis Signed-off-by: Matt Robinson <m...@puppetlabs.com> --- Local-branch: ticket/next/5543 app/models/report.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/models/report.rb b/app/models/report.rb index 9252f15..b68f29c 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -68,7 +68,7 @@ class Report < ActiveRecord::Base comparison_report.resource_statuses.each do |resource_status| resource_type = resource_status.resource_type title = resource_status.title - name = "#{resource_type}[#{title}]" + name = resource_status.name my_properties = events_to_hash( self.resource_statuses.find_by_resource_type_and_title(resource_type, title).events ) their_properties = events_to_hash( resource_status.events ) my_properties.keys.each do |property| -- 1.7.3.1 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-...@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.