Class: API::Entities::MergeRequest
- Inherits:
-
MergeRequestBasic
- Object
- Grape::Entity
- IssuableEntity
- MergeRequestBasic
- API::Entities::MergeRequest
- Defined in:
- lib/api/entities/merge_request.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from IssuableEntity
#issuable_metadata, #presented
Instance Method Details
#build_available?(options) ⇒ Boolean
52 53 54 |
# File 'lib/api/entities/merge_request.rb', line 52 def build_available?() [:project]&.feature_available?(:builds, [:current_user]) end |