fix UsersController#all_menu_courses for rails 3
fix UsersController#all_menu_courses for rails 3

@template is not defined in rails 3

Change-Id: Ic2f4fbcb36c19715077c0ed0819e8b3dff175e00
Reviewed-on: https://gerrit.instructure.com/27611
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Jacob Fugal <f862f167b85d41b225785c70d70808bc7337c1fe@instructure.com>
QA-Review: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>
Product-Review: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>

efrj/canvas-lms,roxolan/canvas-lms,fronteerio/canvas-lms,redconfetti/canvas-lms,efrj/canvas-lms,efrj/canvas-lms,Rvor/canvas-lms,usmschuck/canvas,arrivu/qibla-ecampus,sdeleon28/canvas-lms,jay3126/canvas-lms,matematikk-mooc/canvas-lms,wye0220/shindig-canvas,AndranikMarkosyan/lms,samuels410/greatlakes-lms,wrdsb/canvas-lms,AndranikMarkosyan/lms,samuels410/greatlakes-lms,shidao-fm/canvas-lms,arrivu/arrivu-lms,antoniuslin/canvas-lms,redconfetti/canvas-lms,arrivu/qibla-ecampus,skmezanul/canvas-lms,antoniuslin/canvas-lms,arrivu/arrivu-lms,instructure/canvas-lms,antoniuslin/canvas-lms,landonwilkins/canvas-lms,landonwilkins/canvas-lms,roxolan/canvas-lms,SwinburneOnline/canvas-lms,sfu/canvas-lms,sdeleon28/canvas-lms,skmezanul/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,juoni/canvas-lms,arrivu/hoodemo,narigone/canvas,matematikk-mooc/canvas-lms,snehakachroo1/LSI_replica,shidao-fm/canvas-lms,SwinburneOnline/canvas-lms,instructure/canvas-lms,snehakachroo1/LSI_replica,djbender/canvas-lms,grahamb/canvas-lms,snehakachroo1/LSI_replica,ShreniiNepal/shrenii_lmp,greyhwndz/canvas-lms,roxolan/canvas-lms,matematikk-mooc/canvas-lms,fronteerio/canvas-lms,sfu/canvas-lms,jay3126/canvas-lms,gbleydon/canvas-lms,Jyaasa/canvas-lms,usmschuck/canvas,grahamb/canvas-lms,kyroskoh/canvas-lms,djbender/canvas-lms,kyroskoh/canvas-lms,tgroshon/canvas-lms,arrivu/hoodemo,instructure/canvas-lms,greyhwndz/canvas-lms,grahamb/canvas-lms,ShreniiNepal/shrenii_lmp,utkarshx/canvas-lms,arrivu/hoodemo,sdeleon28/canvas-lms,Jyaasa/canvas-lms,wye0220/shindig-canvas,utkarshx/canvas-lms,eCNAP/CANVAS,juoni/canvas-lms,djbender/canvas-lms,shidao-fm/canvas-lms,jay3126/canvas-lms,samuels410/greatlakes-lms,usmschuck/canvas,Unow/canvas-lms,fronteerio/canvas-lms,eCNAP/CANVAS,jay3126/canvas-lms,venturehive/canvas-lms,sfu/canvas-lms,va7map/canvas-lms,matematikk-mooc/canvas-lms,va7map/canvas-lms,instructure/canvas-lms,whalejasmine/canvas-lms,landonwilkins/canvas-lms,wrdsb/canvas-lms,wrdsb/canvas-lms,dgynn/canvas-lms,Unow/canvas-lms,dgynn/canvas-lms,sfu/canvas-lms,Unow/canvas-lms,leftplusrightllc/canvas-lms,sfu/canvas-lms,samuels410/greatlakes-lms,narigone/canvas,roxolan/canvas-lms,tgroshon/canvas-lms,utkarshx/canvas-lms,utkarshx/canvas-lms,snehakachroo1/LSI_replica,eCNAP/CANVAS,wye0220/shindig-canvas,skmezanul/canvas-lms,SwinburneOnline/canvas-lms,gbleydon/canvas-lms,sdeleon28/canvas-lms,ShreniiNepal/shrenii_lmp,AndranikMarkosyan/lms,narigone/canvas,tgroshon/canvas-lms,redconfetti/canvas-lms,leftplusrightllc/canvas-lms,antoniuslin/canvas-lms,venturehive/canvas-lms,venturehive/canvas-lms,HotChalk/canvas-lms,eCNAP/CANVAS,fronteerio/canvas-lms,va7map/canvas-lms,whalejasmine/canvas-lms,SwinburneOnline/canvas-lms,tgroshon/canvas-lms,HotChalk/canvas-lms,skmezanul/canvas-lms,efrj/canvas-lms,kyroskoh/canvas-lms,AndranikMarkosyan/lms,juoni/canvas-lms,venturehive/canvas-lms,Rvor/canvas-lms,whalejasmine/canvas-lms,dgynn/canvas-lms,arrivu/qibla-ecampus,greyhwndz/canvas-lms,Rvor/canvas-lms,instructure/canvas-lms,HotChalk/canvas-lms,landonwilkins/canvas-lms,wrdsb/canvas-lms,kyroskoh/canvas-lms,sfu/canvas-lms,dgynn/canvas-lms,HotChalk/canvas-lms,arrivu/arrivu-lms,juoni/canvas-lms,usmschuck/canvas,va7map/canvas-lms,shidao-fm/canvas-lms,redconfetti/canvas-lms,narigone/canvas,gbleydon/canvas-lms,grahamb/canvas-lms,instructure/canvas-lms,leftplusrightllc/canvas-lms,instructure/canvas-lms,whalejasmine/canvas-lms,grahamb/canvas-lms,Jyaasa/canvas-lms,ShreniiNepal/shrenii_lmp,leftplusrightllc/canvas-lms,greyhwndz/canvas-lms,Jyaasa/canvas-lms,Rvor/canvas-lms