diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-10 09:12:50 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-10 09:12:50 +0000 |
commit | d0b5f640f2f4ad4f6c42d33300129601210257de (patch) | |
tree | dabebe75056d31fe89157015bf1f7447d9f52af8 /actionpack/lib/action_view | |
parent | 4b055a4a6a32fa14b2e05718279ce5c8a1ed895b (diff) | |
download | rails-d0b5f640f2f4ad4f6c42d33300129601210257de.tar.gz rails-d0b5f640f2f4ad4f6c42d33300129601210257de.tar.bz2 rails-d0b5f640f2f4ad4f6c42d33300129601210257de.zip |
Fix javascript_tag method name collision. Closes #10337.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 41d5e0a17a..6aaf147f94 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -202,9 +202,9 @@ module ActionView joined_javascript_path = File.join(JAVASCRIPTS_DIR, joined_javascript_name) write_asset_file_contents(joined_javascript_path, compute_javascript_paths(sources)) - javascript_tag(joined_javascript_name, options) + javascript_src_tag(joined_javascript_name, options) else - expand_javascript_sources(sources).collect { |source| javascript_tag(source, options) }.join("\n") + expand_javascript_sources(sources).collect { |source| javascript_src_tag(source, options) }.join("\n") end end @@ -461,7 +461,7 @@ module ActionView source << "?#{asset_id}" if !asset_id.blank? end - def javascript_tag(source, options) + def javascript_src_tag(source, options) content_tag("script", "", { "type" => Mime::JS, "src" => path_to_javascript(source) }.merge(options)) end |