Welcome to mirror list, hosted at ThFree Co, Russian Federation.

snippets_controller.rb « dashboard « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bcfdbe14be968b004344c3afbcdf8d849bb68fac (plain)
1
2
3
4
5
6
7
8
9
10
11
class Dashboard::SnippetsController < Dashboard::ApplicationController
  def index
    @snippets = SnippetsFinder.new.execute(
      current_user,
      filter: :by_user,
      user: current_user,
      scope: params[:scope]
    )
    @snippets = @snippets.page(params[:page])
  end
end