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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f6bf6d43
Commit
f6bf6d43
authored
Oct 18, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Projects::BoardsController#index to serialize board name
parent
8d7d54ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/controllers/projects/boards_controller.rb
app/controllers/projects/boards_controller.rb
+1
-1
spec/fixtures/api/schemas/board.json
spec/fixtures/api/schemas/board.json
+2
-1
No files found.
app/controllers/projects/boards_controller.rb
View file @
f6bf6d43
...
...
@@ -83,6 +83,6 @@ class Projects::BoardsController < Projects::ApplicationController
end
def
serialize_as_json
(
resource
)
resource
.
as_json
(
only:
[
:id
])
resource
.
as_json
(
only:
[
:id
,
:name
])
end
end
spec/fixtures/api/schemas/board.json
View file @
f6bf6d43
{
"type"
:
"object"
,
"required"
:
[
"id"
"id"
,
"name"
],
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
...
...
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