summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index d86fb79c78b..96ccd87a407 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -11,8 +11,8 @@ module Gitlab
class Project < Grape::Entity
expose :id, :code, :name, :description, :path, :default_branch
- expose :owner, :using => Entities::UserBasic
- expose :private_flag, :as => :private
+ expose :owner, using: Entities::UserBasic
+ expose :private_flag, as: :private
expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
end
@@ -22,7 +22,7 @@ module Gitlab
class ProjectSnippet < Grape::Entity
expose :id, :title, :file_name
- expose :author, :using => Entities::UserBasic
+ expose :author, using: Entities::UserBasic
expose :expires_at, :updated_at, :created_at
end
@@ -34,9 +34,9 @@ module Gitlab
expose :id
expose (:project_id) {|issue| issue.project.id}
expose :title, :description
- expose :label_list, :as => :labels
- expose :milestone, :using => Entities::Milestone
- expose :assignee, :author, :using => Entities::UserBasic
+ expose :label_list, as: :labels
+ expose :milestone, using: Entities::Milestone
+ expose :assignee, :author, using: Entities::UserBasic
expose :closed, :updated_at, :created_at
end
end