fix usage of request.method to work with rails3

refs CNVS-4704

Change-Id: I1edc42653fd76a74fc0cf87b7e99f73aa1274adc
Reviewed-on: https://gerrit.instructure.com/30097
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
QA-Review: Jacob Fugal <jacob@instructure.com>