diff --git a/lib/api/v3/projects/projects_api.rb b/lib/api/v3/projects/projects_api.rb index e1f641d306..f645c2cb74 100644 --- a/lib/api/v3/projects/projects_api.rb +++ b/lib/api/v3/projects/projects_api.rb @@ -39,13 +39,12 @@ module API namespace ':id' do before do @project = Project.find(params[:id]) - model = ::API::V3::Projects::ProjectModel.new(@project) - @representer = ::API::V3::Projects::ProjectRepresenter.new(model) + @model = ProjectModel.new(@project) end get do authorize(:view_project, context: @project) - @representer + ProjectRepresenter.new(@model) end mount API::V3::Versions::VersionsAPI