gitlab-org--gitlab-foss/app/serializers/merge_request_sidebar_basic_entity.rb
Igor Drozdov 96b994bd05
Fix comments related to BE part
- Edit commit messge body to fix "danger-review"
2019-08-20 15:15:18 -05:00

9 lines
275 B
Ruby

# frozen_string_literal: true
class MergeRequestSidebarBasicEntity < IssuableSidebarBasicEntity
expose :current_user, if: lambda { |_issuable| current_user } do
expose :can_merge do |merge_request|
merge_request.can_be_merged_by?(current_user)
end
end
end