debian-mirror-gitlab/app/controllers/explore/snippets_controller.rb
2016-06-02 11:05:42 +05:30

6 lines
206 B
Ruby

class Explore::SnippetsController < Explore::ApplicationController
def index
@snippets = SnippetsFinder.new.execute(current_user, filter: :all)
@snippets = @snippets.page(params[:page])
end
end