Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created December 12, 2010 09:11
Show Gist options
  • Select an option

  • Save benlangfeld/737944 to your computer and use it in GitHub Desktop.

Select an option

Save benlangfeld/737944 to your computer and use it in GitHub Desktop.
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery => ['jquery', 'jquery-ui', 'rails']
ActiveSupport.on_load(:action_view) do
ActiveSupport.on_load(:after_initialize) do
ActionView::Helpers::AssetTagHelper::register_javascript_expansion :defaults => ['jquery', 'jquery-ui', 'rails']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment