5d785457db
- Split up SnippetsController into separate dashboard and explore sections. - Use consistent page titles, header titles and sidebars between dashboard and explore sections when signed in or not.
10 lines
294 B
Ruby
10 lines
294 B
Ruby
class Dashboard::SnippetsController < Dashboard::ApplicationController
|
|
def index
|
|
@snippets = SnippetsFinder.new.execute(current_user,
|
|
filter: :by_user,
|
|
user: current_user,
|
|
scope: params[:scope]
|
|
)
|
|
@snippets = @snippets.page(params[:page]).per(PER_PAGE)
|
|
end
|
|
end
|