Skip to content
Snippets Groups Projects
Commit 04db6b19 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

paginate user drafts

parent e553884a
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,8 @@ module PublisherController
end
def show_all_drafts
render json: LearningObject.where(publisher: @publisher, state: LearningObject.states[:draft])
learning_objects = paginate LearningObject.where(publisher: @publisher, state: LearningObject.states[:draft])
render json: learning_objects
end
# GET /v1/users/1/learning_objects
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment