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

13 lines
307 B
Ruby
Raw Normal View History

class Dashboard::SnippetsController < Dashboard::ApplicationController
skip_cross_project_access_check :index
def index
@snippets = SnippetsFinder.new(
2015-12-14 21:53:52 -05:00
current_user,
author: current_user,
scope: params[:scope]
).execute
@snippets = @snippets.page(params[:page])
end
end