Module: BlobActiveModel

Extended by:
ActiveSupport::Concern
Included in:
Blob, Gitlab::Search::FoundBlob
Defined in:
app/models/concerns/blob_active_model.rb

Overview

To be included in blob classes which are to be treated as ActiveModel.

The blob class must respond_to `project`

Instance Method Summary collapse

Instance Method Details

#to_ability_nameObject


16
17
18
# File 'app/models/concerns/blob_active_model.rb', line 16

def to_ability_name
  'blob'
end