gitlab-org--gitlab-foss/app/controllers/dashboard/snippets_controller.rb
2018-02-22 17:11:36 +01:00

12 lines
307 B
Ruby

class Dashboard::SnippetsController < Dashboard::ApplicationController
skip_cross_project_access_check :index
def index
@snippets = SnippetsFinder.new(
current_user,
author: current_user,
scope: params[:scope]
).execute
@snippets = @snippets.page(params[:page])
end
end