shouldn't reference Report directly, use engine instead

pull/6827/head
jwollert 14 years ago
parent 8c9354b2c7
commit bd337d33df
  1. 4
      app/models/report/result.rb

@ -41,11 +41,11 @@ module Report::Result
fields.inject({}) { |hash, key| hash.merge key => entry.fields[key] } fields.inject({}) { |hash, key| hash.merge key => entry.fields[key] }
end end
# map group back to array, all fields with same key get grouped into one list # map group back to array, all fields with same key get grouped into one list
data.keys.map { |f| Report::Result.new data[f], f, type, important_fields } data.keys.map { |f| engine::Result.new data[f], f, type, important_fields }
end end
end end
# create a single result from that list # create a single result from that list
Report::Result.new list, {}, type, important_fields engine::Result.new list, {}, type, important_fields
end end
def inspect def inspect

Loading…
Cancel
Save