Commit b02b3b14 authored by Rajendra Kadam's avatar Rajendra Kadam

Add source rule class inside super class

parent 46a27b3f
......@@ -4,6 +4,10 @@ module EE
module API
module Entities
class MergeRequestApprovalRule < ApprovalRule
class SourceRule < Grape::Entity
expose :approvals_required
end
expose :source_rule, using: MergeRequestApprovalRule::SourceRule
end
end
......
# frozen_string_literal: true
module EE
module API
module Entities
class MergeRequestApprovalRule < ApprovalRule
class SourceRule < Grape::Entity
expose :approvals_required
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment