This patch adds methods to ActionView to register custom asset expansions which work just like :defaults. This will allow plugins which use multiple asset files an easy way for developers to insert them into their application.
This could be a replacement for the current register_javascript_include_default, as the extra asset files may not want to be loaded at all times.
ActionView::Helpers::AssetTagHelper::register_javascript_expansion :monkey, "head", "body", "tail"
ActionView::Helpers::AssetTagHelper::register_stylesheet_expansion :monkey, "head", "body", "tail"
javascript_include_tag :monkey
stylesheet_link_tag :monkey