Class: Dashboard::SnippetsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/dashboard/snippets_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


2
3
4
5
6
7
8
9
10
# File 'app/controllers/dashboard/snippets_controller.rb', line 2

def index
  @snippets = SnippetsFinder.new.execute(
    current_user,
    filter: :by_user,
    user: current_user,
    scope: params[:scope]
  )
  @snippets = @snippets.page(params[:page])
end