aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-28 13:20:52 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-28 13:20:52 -0800
commit764397f17d4140232c1aa62bc593b3e5f25485e7 (patch)
tree95255bee92b4a5a8129bfd8380c88a984bcc38dc /actionpack/lib/action_view/helpers/url_helper.rb
parent8fff05ad3212e4302f186ca154a120f00d1b6abd (diff)
parent489138802c3d5f2cdafc8cea22eac0da446099cc (diff)
downloadrails-764397f17d4140232c1aa62bc593b3e5f25485e7.tar.gz
rails-764397f17d4140232c1aa62bc593b3e5f25485e7.tar.bz2
rails-764397f17d4140232c1aa62bc593b3e5f25485e7.zip
Merge pull request #9098 from firmhouse/add-head-requests
Make current_url? work with HEAD requests and remove caching_allowed? since it doesn't do anything
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index bade121d44..5e20b557d8 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -514,7 +514,7 @@ module ActionView
"in a #request method"
end
- return false unless request.get?
+ return false unless request.get? || request.head?
url_string = url_for(options)