Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
f8eedb4c
Commit
f8eedb4c
authored
Aug 11, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaner variable name
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
80036470
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lib/api/projects.rb
lib/api/projects.rb
+5
-3
No files found.
lib/api/projects.rb
View file @
f8eedb4c
...
@@ -21,12 +21,14 @@ module API
...
@@ -21,12 +21,14 @@ module API
# Example Request:
# Example Request:
# GET /projects
# GET /projects
get
do
get
do
@query
=
current_user
.
authorized_projects
@projects
=
current_user
.
authorized_projects
# If the archived parameter is passed, limit results accordingly
# If the archived parameter is passed, limit results accordingly
if
params
[
:archived
].
present?
if
params
[
:archived
].
present?
@
query
=
@query
.
where
(
archived:
parse_boolean
(
params
[
:archived
]))
@
projects
=
@projects
.
where
(
archived:
parse_boolean
(
params
[
:archived
]))
end
end
@projects
=
paginate
@query
@projects
=
paginate
@projects
present
@projects
,
with:
Entities
::
Project
present
@projects
,
with:
Entities
::
Project
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment