summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorAngelo Lakra <alakra@comverge.com>2013-09-24 08:19:21 -0600
committerAngelo Lakra <angelo.lakra@gmail.com>2013-10-08 00:43:14 -0600
commit19c7b21fdd7ce37567ba1149bc15e220a4b91944 (patch)
tree1c1c1a7721549f57c9110f24d40cfbe3c60749c1 /lib/api/projects.rb
parent0984328946aea015402b2254e2d0643def9235ce (diff)
downloadgitlab-ci-19c7b21fdd7ce37567ba1149bc15e220a4b91944.tar.gz
Adding specs for Project API end points
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index f9e6e94..7f8b51e 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -11,7 +11,7 @@ module API
# Example Request:
# GET /projects/:id
get ":id" do
- project = Project.where(id: params[:id])
+ project = Project.find(params[:id])
present project, with: Entities::Project
end
end