Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created January 29, 2011 16:25
Show Gist options
  • Save benlangfeld/801963 to your computer and use it in GitHub Desktop.
Save benlangfeld/801963 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