summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-09-06 11:48:00 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-09-15 14:10:49 -0500
commit02ddb9dff4084f615f744614cf81dc4166d61668 (patch)
treecb960761b5f5786d635d6acf06512ea713ad572e /lib/api
parentd0279ccba5c4a2cd8611ddec04eeff67e0e9f9c6 (diff)
downloadgitlab-ce-02ddb9dff4084f615f744614cf81dc4166d61668.tar.gz
Syntax fixes and better tests for helper methods. Updated docs.group-specific-lfs-settings
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 1529a44f58d..bfee4b6c752 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -86,7 +86,8 @@ module API
expose(:snippets_enabled) { |project, options| project.feature_available?(:snippets, options[:user]) }
expose :created_at, :last_activity_at
- expose :shared_runners_enabled, :lfs_enabled
+ expose :shared_runners_enabled
+ expose :lfs_enabled?, as: :lfs_enabled
expose :creator_id
expose :namespace
expose :forked_from_project, using: Entities::BasicProjectDetails, if: lambda{ |project, options| project.forked? }
@@ -120,7 +121,8 @@ module API
end
class Group < Grape::Entity
- expose :id, :name, :path, :description, :visibility_level, :lfs_enabled
+ expose :id, :name, :path, :description, :visibility_level
+ expose :lfs_enabled?, as: :lfs_enabled
expose :avatar_url
expose :web_url
end