Skip to content

Instantly share code, notes, and snippets.

@pat
Forked from dnch/gist:465056
Created July 6, 2010 10:39
Show Gist options
  • Save pat/465237 to your computer and use it in GitHub Desktop.
Save pat/465237 to your computer and use it in GitHub Desktop.
ActionView::Helpers::AssetTagHelper.register_javascript_expansion(
:jquery => if Rails.env.production?
["http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"]
else
['jquery-1.4.2']
end
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment