remove no longer required eager loading

pull/6827/head
Jens Ulferts 8 years ago
parent cb752e0594
commit 85809c2ac2
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 6
      lib/open_project/costs/engine.rb

@ -421,11 +421,7 @@ module OpenProject::Costs
require 'api/v3/work_packages/work_package_representer'
API::V3::WorkPackages::WorkPackageRepresenter.to_eager_load += [{ time_entries: [:project,
:user] },
{ cost_entries: [:project,
:user] },
:cost_object]
API::V3::WorkPackages::WorkPackageRepresenter.to_eager_load += [:cost_object]
API::V3::WorkPackages::WorkPackageCollectionRepresenter.prepend EagerLoadedCosts
end

Loading…
Cancel
Save