Skip to content
Browse files

Make javascript_include_tag :default behave correctly with applicatio…

…n.js, fixes #2986

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent bd5ace8 commit d958f22ecc47f34aced7f5619be483d9686a26f0 @madrobby madrobby committed Nov 22, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/asset_tag_helper.rb
View
2 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -60,7 +60,7 @@ def javascript_path(source)
def javascript_include_tag(*sources)
options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { }
if sources.first == :defaults
- sources = @@javascript_default_sources
+ sources = @@javascript_default_sources.dup
if defined?(RAILS_ROOT) and File.exists?("#{RAILS_ROOT}/public/javascripts/application.js")
sources << 'application'
end

0 comments on commit d958f22

Please sign in to comment.
Something went wrong with that request. Please try again.