forked from indirect/rails3-generators
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
lib/generators/jquery/install/templates/config/initializers/jqueryui.rb.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'] |