debian-mirror-gitlab/app/controllers/dashboard/snippets_controller.rb
2017-08-17 22:00:37 +05:30

10 lines
265 B
Ruby

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