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 before do
@query = Query.find(params[:id]) @query = Query.find(params[:id])
model = QueryModel.new(query: @query) model = ::API::V3::Queries::QueryModel.new(query: @query)
@representer = QueryRepresenter.new(model) @representer = ::API::V3::Queries::QueryRepresenter.new(model)
end end
helpers do helpers do

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

Loading…
Cancel
Save