2015-09-25 12:07:36 +05:30
|
|
|
class Dashboard::SnippetsController < Dashboard::ApplicationController
|
|
|
|
def index
|
2015-12-23 02:04:40 +05:30
|
|
|
@snippets = SnippetsFinder.new.execute(
|
|
|
|
current_user,
|
2015-09-25 12:07:36 +05:30
|
|
|
filter: :by_user,
|
|
|
|
user: current_user,
|
|
|
|
scope: params[:scope]
|
|
|
|
)
|
|
|
|
@snippets = @snippets.page(params[:page]).per(PER_PAGE)
|
|
|
|
end
|
|
|
|
end
|