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.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 899418831bf..52ff819924b 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -1256,20 +1256,20 @@ module API
end
class Compare < Grape::Entity
- expose :commit, using: Entities::Commit do |compare, options|
- ::Commit.decorate(compare.commits, nil).last
+ expose :commit, using: Entities::Commit do |compare, _|
+ compare.commits.last
end
- expose :commits, using: Entities::Commit do |compare, options|
- ::Commit.decorate(compare.commits, nil)
+ expose :commits, using: Entities::Commit do |compare, _|
+ compare.commits
end
- expose :diffs, using: Entities::Diff do |compare, options|
- compare.diffs(limits: false).to_a
+ expose :diffs, using: Entities::Diff do |compare, _|
+ compare.diffs.diffs.to_a
end
- expose :compare_timeout do |compare, options|
- compare.diffs.overflow?
+ expose :compare_timeout do |compare, _|
+ compare.diffs.diffs.overflow?
end
expose :same, as: :compare_same_ref
@@ -1828,6 +1828,7 @@ module API
expose :uid, as: :application_id
expose :name, as: :application_name
expose :redirect_uri, as: :callback_url
+ expose :confidential
end
# Use with care, this exposes the secret