Minor refactoring of work packages api

pull/1435/head
Marek Takac 11 years ago
parent 97d4e9a1e6
commit 6689628a74
  1. 6
      app/api/work_packages/work_packages.rb

@ -26,12 +26,12 @@ module WorkPackages
before do
@work_package = WorkPackage.find(params[:id])
work_package_model = WorkPackageModel.new(work_package: @work_package)
@work_package_representer = WorkPackageRepresenter.new(work_package_model)
end
get do
work_package_model = WorkPackageModel.new(work_package: @work_package)
work_package_representer = WorkPackageRepresenter.new(work_package_model)
work_package_representer.to_json
@work_package_representer.to_json
end
put do

Loading…
Cancel
Save