Skip to content

Commit

Permalink
trying add jquerui template
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesantis committed Aug 3, 2010
1 parent 8643035 commit 8dcb1c4
Showing 1 changed file with 8 additions and 0 deletions.
@@ -0,0 +1,8 @@
# Switch the javascript_include_tag :defaults to use jQuery instead of
# the default prototype helpers.
# Credits: http://github.com/lleger/Rails-3-jQuery/

if ActionView::Helpers::AssetTagHelper.const_defined?(:JAVASCRIPT_DEFAULT_SOURCES)
ActionView::Helpers::AssetTagHelper.send(:remove_const, "JAVASCRIPT_DEFAULT_SOURCES")
end
ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery', 'jqueryui', 'rails']

0 comments on commit 8dcb1c4

Please sign in to comment.