debian-mirror-gitlab/app/controllers/explore/snippets_controller.rb
2015-09-25 12:07:36 +05:30

6 lines
220 B
Ruby

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