2019-07-25 22:30:50 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestSidebarBasicEntity < IssuableSidebarBasicEntity
|
2019-08-19 04:34:19 -04:00
|
|
|
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
|
2019-07-25 22:30:50 -04:00
|
|
|
end
|