fix BLTI on Ruby 2.0

Change-Id: I5082e03729e5e6a902a7edd612a935770ae3f5c0
Reviewed-on: https://gerrit.instructure.com/27952
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
styling tweaks on grade summary page

fixes CNVS-10056

test plan:
- 'Score' column header should be centered
- play with different combinations of window size and assignment title length
- the detail icons should not run off the right edge
- the 'Details' column header should be correctly hidden (but still visible to
  screenreaders)

Change-Id: Id3a1ac5fa194f49ee6992d4d4f15dba74e38afe8
Reviewed-on: https://gerrit.instructure.com/27876
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
Reviewed-by: Liz Abinante <labinante@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
create user merge api

closes CNVS-9084

test plan
 - merge users via api
 - should not be able to merge if you cannot manage
   both users

Change-Id: Id84995925b20ac109977a4f281c9de45a5db5a09
Reviewed-on: https://gerrit.instructure.com/27712
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Make "ColumnDatum" a proper API doc class

Removes the space in "Column Datum" so that swagger
can generate the type as a ruby class.

Test Plan:
- API docs should reflect this change

Fixes SIS-120

Change-Id: I581942b6671d73d42b63e0d0ace92bdc45622e12
Reviewed-on: https://gerrit.instructure.com/27983
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Eric Adams <eadams@instructure.com>
Product-Review: Eric Adams <eadams@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
fix creating topics via modules with draft state off

test plan:
 - with draft state off,
   - a discussion topic created via add-module-item should remain
     in the module item list after a page reload
 - with draft state on,
   - a discussion topic created via add-module-item should be
     initially unpublished

fixes CNVS-10192

Change-Id: I3504a594f0f71810ac933ae66264f54e63691e1e
Reviewed-on: https://gerrit.instructure.com/27972
Reviewed-by: Mark Severson <markse@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
fix callbacks in ruby 2.0

Change-Id: I49aa8b21eb6183a5b71b55e81e775bc0217d65f3
Reviewed-on: https://gerrit.instructure.com/26965
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
fix association callback in ruby 2.0

Change-Id: I53e6caa46a27edcf117e9583b99daf2f39dc7099
Reviewed-on: https://gerrit.instructure.com/26987
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
i18n and html safety fixes for rails 3

Change-Id: Ibae01f4cd57bffff8d4875f0efdd229564a40a85
Reviewed-on: https://gerrit.instructure.com/27577
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
fix erubis template handler for rails 3

fixes i18n:check

Change-Id: I319e4db05d1bc2b99f910118809569aba864df6b
Reviewed-on: https://gerrit.instructure.com/27974
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
add explicit table_name for Profile class

table_name is nil by default for abstract classes in rails 3

Change-Id: I8c85377c456dec25e3848a783329560e50e370ab
Reviewed-on: https://gerrit.instructure.com/27973
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
extend folio pagination to enumerables in rails 3

Change-Id: I95df16e305546da4b1a40cd879769347081034df
Reviewed-on: https://gerrit.instructure.com/27901
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
use rescue_action methods in rails 3

Change-Id: I876716101f0c6f2f2d078fbbd2989f8d21f8eb18
Reviewed-on: https://gerrit.instructure.com/27578
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
preserve active record error json format in rails 3

Change-Id: I80f27f2259b8d0fa4f17575077871a4f97eb0117
Reviewed-on: https://gerrit.instructure.com/27910
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
fix active record as_json for rails 3

Change-Id: Ie510ac95f5f15dbda9667fca60ebf32a55b13c61
Reviewed-on: https://gerrit.instructure.com/27900
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
fix api spec helper for rails 3

Change-Id: I9bd6539d2064b3b913a470d0a14f73f0b3335e3f
Reviewed-on: https://gerrit.instructure.com/27902
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
rounded grading standard percentages to two decimal places

fixes CNVS-1442

Test Plan:
  - go to grading standards (aka grading scheme) page as teacher
  - set a value to have no decimals
  - set a value to have one decimal place
  - set a value to have two decimal places
  - save new grading scheme and reload page
  - ensure that thru this whole process that proper rounding occurs at each step

Change-Id: Ia9310225e94061638c2c648adeb744c4d84cd4d0
Reviewed-on: https://gerrit.instructure.com/27776
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
tooltips for ember quiz index varied due dates

closes CNVS-9401, CNVS-10098

test plan:
  - enable fabulous quizzes
  - create a quiz with multiple due/availability dates
  - navigate to quiz index
  - verify that tooltip displays as it does with non-ember quizzes
    -- as described in g/26792/
  - verify that quizzes are sorted by dates:
    - due date
    - then, multiple dates
    - then, no dates

Change-Id: I8d772d0ab2416832300ff60784b192842fc54bcb
Reviewed-on: https://gerrit.instructure.com/27243
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Reviewed-by: Stanley Stuart <stanley@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>
integrate sharding_spec_helper with switchman for rails 3

Change-Id: Id2205c4c375c569e88857bb3f24a7f11a9d184af
Reviewed-on: https://gerrit.instructure.com/27960
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
fix editing questions when there are more than 25 questions

test plan:
  - As a teacher, create a quiz with more than 25 questions.
  - Refresh the edit page and click on the "Questions" tab.
  - You should be able to edit quiz questions at the end of the list
    (e.g. questions after question #25).

fixes CNVS-10212

Change-Id: I9045f91f527d31048ce3da24fa91b36c9e79a4de
Reviewed-on: https://gerrit.instructure.com/27967
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
show 'View Course Stream' to students

test plan:
 * set homepage to something other than the course stream
 * navigate to course homepage as student (with draft state disabled)
   - 'See Course Stream' link should be visible and function
   - 'See Course Stream' should not be shown when on the course stream
 * navigate to course homepage as student (with draft state enabled)
   - 'View Course Stream' link should be visible and function
   - 'View Course Stream' should not be shown when on the course stream

fixes CNVS-10136

Change-Id: Ic72f27b3c5003cf99dc35afea6d1c577dbc12e1d
Reviewed-on: https://gerrit.instructure.com/27981
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Mark Severson <markse@instructure.com>
Product-Review: Mark Severson <markse@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>