BigW Consortium Gitlab

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