canvas-lms/app
Jacob Fugal 03f150a078 cleanup lib/api.rb for folio
refs CNVS-5305

with folio pages, we can just trust and use page.first_page and
page.last_page

test-plan:
 * /api/v1/courses
   - should have "first" link regardless of page (first, last, in
     between)
   - should have "last" link regardless of page (first, last, in
     between)
 * /api/v1/search/recipients?context=course_123
   - should have "first" link regardless of page (first, last, in
     between)
   - should not have "last" link when there's a next page
   - should have "last" link on last page (no next page)
 * exercise the conversation receipient search when the search results
   have just one hit
   - should not throw an error
 * load gradebook2 when there's only one page of enrollments
   - should not throw an error

Change-Id: If6dfa972db22a91350ee820ccbfe25008f6b0e90
Reviewed-on: https://gerrit.instructure.com/26538
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2013-11-25 16:37:31 +00:00
..
coffeescripts cleanup lib/api.rb for folio 2013-11-25 16:37:31 +00:00
controllers add google docs restriction ui settings 2013-11-23 17:10:43 +00:00
helpers stop students from viewing unpublished quizzes when viewing by URL 2013-11-22 22:11:08 +00:00
messages fixes typo in regrade notification 2013-11-06 23:05:26 +00:00
middleware rails3 encrypted_cookie_store version 2013-11-19 19:46:46 +00:00
models restrict google doc submissions by domain 2013-11-23 17:10:31 +00:00
observers don't include submissions in recent_stream_items 2013-01-03 15:42:39 -07:00
presenters don't error on submissions without cached assignment 2013-11-16 19:06:03 +00:00
stylesheets shrink new conversation attachment padding 2013-11-22 21:13:10 +00:00
views add google docs restriction ui settings 2013-11-23 17:10:43 +00:00