gitlab-org--gitlab-foss/app/controllers/explore/snippets_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
421 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Explore::SnippetsController < Explore::ApplicationController
include Gitlab::NoteableMetadata
feature_category :snippets
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