Fixed paths to modules

pull/1528/head
Marek Takac 10 years ago
parent 51eea31f8b
commit a240d79256
  1. 4
      lib/api/v3/queries/queries_api.rb
  2. 4
      lib/api/v3/work_packages/work_packages_api.rb

@ -12,8 +12,8 @@ module API
before do
@query = Query.find(params[:id])
model = QueryModel.new(query: @query)
@representer = QueryRepresenter.new(model)
model = ::API::V3::Queries::QueryModel.new(query: @query)
@representer = ::API::V3::Queries::QueryRepresenter.new(model)
end
helpers do

@ -12,8 +12,8 @@ module API
before do
@work_package = WorkPackage.find(params[:id])
model = WorkPackageModel.new(work_package: @work_package)
@representer = WorkPackageRepresenter.new(model, :activities, :users)
model = ::API::V3::WorkPackages::WorkPackageModel.new(work_package: @work_package)
@representer = ::API::V3::WorkPackages::WorkPackageRepresenter.new(model, :activities, :users)
end
get do

Loading…
Cancel
Save