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
0ea0e542
Commit
0ea0e542
authored
Mar 17, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old entities
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
eea31779
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
lib/api/entities.rb
lib/api/entities.rb
+0
-12
No files found.
lib/api/entities.rb
View file @
0ea0e542
...
@@ -58,18 +58,6 @@ module API
...
@@ -58,18 +58,6 @@ module API
end
end
end
end
class
TeamMember
<
UserBasic
expose
:permission
,
as: :access_level
do
|
user
,
options
|
options
[
:user_team
].
user_team_user_relationships
.
find_by
(
user_id:
user
.
id
).
permission
end
end
class
TeamProject
<
Project
expose
:greatest_access
,
as: :greatest_access_level
do
|
project
,
options
|
options
[
:user_team
].
user_team_project_relationships
.
find_by
(
project_id:
project
.
id
).
greatest_access
end
end
class
Group
<
Grape
::
Entity
class
Group
<
Grape
::
Entity
expose
:id
,
:name
,
:path
,
:owner_id
expose
:id
,
:name
,
:path
,
:owner_id
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