BigW Consortium Gitlab

snippets_controller.rb 265 Bytes
Newer Older
1 2
class Dashboard::SnippetsController < Dashboard::ApplicationController
  def index
3
    @snippets = SnippetsFinder.new(
4
      current_user,
5
      author: current_user,
6
      scope: params[:scope]
7
    ).execute
8
    @snippets = @snippets.page(params[:page])
9 10
  end
end