Class: API::Entities::MergeRequest

Inherits:
MergeRequestBasic show all
Defined in:
lib/api/entities/merge_request.rb

Direct Known Subclasses

MergeRequestChanges

Instance Method Summary collapse

Methods inherited from IssuableEntity

#issuable_metadata, #presented

Instance Method Details

#build_available?(options) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/api/entities/merge_request.rb', line 52

def build_available?(options)
  options[:project]&.feature_available?(:builds, options[:current_user])
end