Initial Commit from Base app
[base_ror3_portal.git] / config / initializers / jquery.rb
blob1254408b692d97dd1aaa7ba5834c6c78cab1f412
1         # Switch the javascript_include_tag :defaults to
2         # use jQuery instead of the default prototype helpers.
3         # Also setup a :jquery expansion, just for good measure.
4         # Written by: Logan Leger, logan@loganleger.com
5         # http://github.com/lleger/Rails-3-jQuery
7         ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery => ['jquery', 'rails']
8         ActiveSupport.on_load(:action_view) do
9           ActiveSupport.on_load(:after_initialize) do
10             ActionView::Helpers::AssetTagHelper::register_javascript_expansion :defaults => ['jquery', 'rails']
11           end
12         end