gitlab-org--gitlab-foss/app/controllers/dashboard/snippets_controller.rb
2016-03-19 17:37:54 -04:00

11 lines
287 B
Ruby

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