Module: ProtectedRef

Extended by:
ActiveSupport::Concern
Includes:
Gitlab::Utils::StrongMemoize, Importable
Included in:
ProtectedBranch, ProtectedTag
Defined in:
app/models/concerns/protected_ref.rb,
app/models/protected_ref/access_level.rb

Defined Under Namespace

Classes: AccessLevel

Instance Attribute Summary

Attributes included from Importable

#importing, #user_contributions

Instance Method Summary collapse

Instance Method Details

#commitObject



19
20
21
# File 'app/models/concerns/protected_ref.rb', line 19

def commit
  project&.commit(name)
end