Skip to content

Instantly share code, notes, and snippets.

@dnch
Created July 6, 2010 05:36
Show Gist options
  • Save dnch/465056 to your computer and use it in GitHub Desktop.
Save dnch/465056 to your computer and use it in GitHub Desktop.
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery => case Rails.env
when "production" then ["http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js", "application", "etc"]
when "development" then %w(jquery jquery-ui jquery-typewatch rails application)
end
@yob
Copy link

yob commented Jul 6, 2010

oo, handy.

Stolen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment