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']