summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/snippets_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/dashboard/snippets_controller.rb')
-rw-r--r--app/controllers/dashboard/snippets_controller.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/controllers/dashboard/snippets_controller.rb b/app/controllers/dashboard/snippets_controller.rb
index bcfdbe14be9..8dd91264451 100644
--- a/app/controllers/dashboard/snippets_controller.rb
+++ b/app/controllers/dashboard/snippets_controller.rb
@@ -1,11 +1,10 @@
class Dashboard::SnippetsController < Dashboard::ApplicationController
def index
- @snippets = SnippetsFinder.new.execute(
+ @snippets = SnippetsFinder.new(
current_user,
- filter: :by_user,
- user: current_user,
+ author: current_user,
scope: params[:scope]
- )
+ ).execute
@snippets = @snippets.page(params[:page])
end
end