ad309f5d11
Refactor snippets finder & dont return internal snippets for external users See merge request !2094
6 lines
192 B
Ruby
6 lines
192 B
Ruby
class Explore::SnippetsController < Explore::ApplicationController
|
|
def index
|
|
@snippets = SnippetsFinder.new(current_user).execute
|
|
@snippets = @snippets.page(params[:page])
|
|
end
|
|
end
|