canvas-lms/app
Ryan Florence 929fea181b added js_env view/controller helper
this helper is the mechanism to send data from
rails to the JavaScript w/o requiring an xhr
or dumping data into the DOM and pulling it back
out /barf

you can call it from a view or a controller

test case:
1. call `js_env :FOO => 'bar'` in a view or
   in a controller
2. load the page
3. open the web console and inspect the ENV
   global JavaScript variable
4. ENV.FOO should be 'bar', wassupnow?

Change-Id: Ie079ba0ee610fc6a9e837cd1301ee29b08201e65
Reviewed-on: https://gerrit.instructure.com/8170
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
2012-01-19 16:10:19 -07:00
..
coffeescripts show muted assignment indicator in gradebook2 2012-01-19 12:39:51 -07:00
controllers added js_env view/controller helper 2012-01-19 16:10:19 -07:00
helpers added js_env view/controller helper 2012-01-19 16:10:19 -07:00
messages fix dashboard notifications for appointments 2012-01-10 13:40:25 -07:00
middleware add support for specifying domain root account to api spec helper 2011-12-12 13:06:24 -07:00
models show outcomes from all associated accounts; fixes #6800 2012-01-19 12:58:07 -07:00
observers avatar image caching and invalidation, closes #5210 2011-11-16 10:29:42 -07:00
stylesheets show muted assignment indicator in gradebook2 2012-01-19 12:39:51 -07:00
views added js_env view/controller helper 2012-01-19 16:10:19 -07:00