Class: Explore::SnippetsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/explore/snippets_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


2
3
4
5
# File 'app/controllers/explore/snippets_controller.rb', line 2

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