diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-04-04 07:37:23 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-04-04 07:37:23 +0900 |
commit | e2d9e85368d1e049c55057fcf91aa036086c649a (patch) | |
tree | bd9c10eb55ceb336baf21b490524d9e7513a6a1f /actionview/lib | |
parent | faa37c76521f954c75cd18ea8f9e736c304fdb68 (diff) | |
download | rails-e2d9e85368d1e049c55057fcf91aa036086c649a.tar.gz rails-e2d9e85368d1e049c55057fcf91aa036086c649a.tar.bz2 rails-e2d9e85368d1e049c55057fcf91aa036086c649a.zip |
correct output of auto_discovery_link_tag [ci skip]
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/asset_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 5c28043f8a..60fc9ee1a2 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -127,7 +127,7 @@ module ActionView # auto_discovery_link_tag(:rss, {controller: "news", action: "feed"}) # # => <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.currenthost.com/news/feed" /> # auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {title: "Example RSS"}) - # # => <link rel="alternate" type="application/rss+xml" title="Example RSS" href="http://www.example.com/feed" /> + # # => <link rel="alternate" type="application/rss+xml" title="Example RSS" href="http://www.example.com/feed.rss" /> def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {}) if !(type == :rss || type == :atom) && tag_options[:type].blank? raise ArgumentError.new("You should pass :type tag_option key explicitly, because you have passed #{type} type other than :rss or :atom.") |