2015-09-08 09:49:20 -04:00
|
|
|
class Dashboard::SnippetsController < Dashboard::ApplicationController
|
|
|
|
def index
|
2015-12-14 21:53:52 -05:00
|
|
|
@snippets = SnippetsFinder.new.execute(
|
|
|
|
current_user,
|
2015-09-08 09:49:20 -04:00
|
|
|
filter: :by_user,
|
|
|
|
user: current_user,
|
|
|
|
scope: params[:scope]
|
|
|
|
)
|
2016-03-19 17:37:54 -04:00
|
|
|
@snippets = @snippets.page(params[:page])
|
2015-09-08 09:49:20 -04:00
|
|
|
end
|
|
|
|
end
|