fix alerts on rails 3

Change-Id: If8a9296f5d6d6c85dd7caf4af12dac5b4654065a
Reviewed-on: https://gerrit.instructure.com/31404
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>