debian-mirror-gitlab/app/controllers/explore/snippets_controller.rb
2023-03-04 22:38:38 +05:30

18 lines
435 B
Ruby

# frozen_string_literal: true
class Explore::SnippetsController < Explore::ApplicationController
include Gitlab::NoteableMetadata
feature_category :source_code_management
def index
@snippets = SnippetsFinder.new(current_user, explore: true)
.execute
.page(params[:page])
.without_count
.inc_author
.inc_statistics
@noteable_meta_data = noteable_meta_data(@snippets, 'Snippet')
end
end