debian-mirror-gitlab/app/controllers/dashboard/snippets_controller.rb
2018-12-05 23:21:45 +05:30

14 lines
338 B
Ruby

# frozen_string_literal: true
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