aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-10-05 02:07:25 +0200
committerJosé Valim <jose.valim@gmail.com>2011-10-05 02:08:02 +0200
commit5711a35ad8faa3fb6d138b234cbe9acfad27a9a8 (patch)
tree9b40f5b0d2c29b21239b732fcb1830b7013db1cc /actionpack/lib/action_view
parentac2f6bd6431311b1eae9d8ac6c217d2c2fbc2b3d (diff)
downloadrails-5711a35ad8faa3fb6d138b234cbe9acfad27a9a8.tar.gz
rails-5711a35ad8faa3fb6d138b234cbe9acfad27a9a8.tar.bz2
rails-5711a35ad8faa3fb6d138b234cbe9acfad27a9a8.zip
Ensure default_asset_host_protocol is respected, closes #2980.
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/asset_paths.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/asset_paths.rb b/actionpack/lib/action_view/asset_paths.rb
index cf30ad7e57..3321b4181d 100644
--- a/actionpack/lib/action_view/asset_paths.rb
+++ b/actionpack/lib/action_view/asset_paths.rb
@@ -16,8 +16,6 @@ module ActionView
# roots. Rewrite the asset path for cache-busting asset ids. Include
# asset host, if configured, with the correct request protocol.
#
- # When include_host is true and the asset host does not specify the protocol
- # the protocol parameter specifies how the protocol will be added.
# When :relative (default), the protocol will be determined by the client using current protocol
# When :request, the protocol will be the request protocol
# Otherwise, the protocol is used (E.g. :http, :https, etc)
@@ -25,11 +23,10 @@ module ActionView
source = source.to_s
return source if is_uri?(source)
- options[:include_host] ||= true
source = rewrite_extension(source, dir, options[:ext]) if options[:ext]
source = rewrite_asset_path(source, dir, options)
source = rewrite_relative_url_root(source, relative_url_root)
- source = rewrite_host_and_protocol(source, options[:protocol]) if options[:include_host]
+ source = rewrite_host_and_protocol(source, options[:protocol])
source
end