debian-mirror-gitlab/app/controllers/dashboard/snippets_controller.rb

13 lines
307 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
class Dashboard::SnippetsController < Dashboard::ApplicationController
2018-03-27 19:54:05 +05:30
skip_cross_project_access_check :index
2015-09-25 12:07:36 +05:30
def index
2017-08-17 22:00:37 +05:30
@snippets = SnippetsFinder.new(
2015-12-23 02:04:40 +05:30
current_user,
2017-08-17 22:00:37 +05:30
author: current_user,
2015-09-25 12:07:36 +05:30
scope: params[:scope]
2017-08-17 22:00:37 +05:30
).execute
2016-06-02 11:05:42 +05:30
@snippets = @snippets.page(params[:page])
2015-09-25 12:07:36 +05:30
end
end