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