aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2011-11-22 12:38:05 -0800
committerYehuda Katz <wycats@gmail.com>2011-11-22 12:38:05 -0800
commit9b7be78820c5510b2f841dc2197ed3a32ad8dd19 (patch)
tree70060d489384f30b5d7c38dd1bc71a1b2bc895ab /actionpack/lib
parentb13b49ccc17a04836fdc877094eab4c951e69e66 (diff)
parent05e02deb686fc21f99c2d1dcf3abc987796e0e19 (diff)
downloadrails-9b7be78820c5510b2f841dc2197ed3a32ad8dd19.tar.gz
rails-9b7be78820c5510b2f841dc2197ed3a32ad8dd19.tar.bz2
rails-9b7be78820c5510b2f841dc2197ed3a32ad8dd19.zip
Merge pull request #3724 from marcandre/media_default
stylesheet_tag default's media is "screen"
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb b/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
index 343153c8c5..41958c6559 100644
--- a/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
+++ b/actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
@@ -68,6 +68,9 @@ module ActionView
# Returns a stylesheet link tag for the sources specified as arguments. If
# you don't specify an extension, <tt>.css</tt> will be appended automatically.
# You can modify the link attributes by passing a hash as the last argument.
+ # For historical reasons, the 'media' attribute will always be present and defaults
+ # to "screen", so you must explicitely set it to "all" for the stylesheet(s) to
+ # apply to all media types.
#
# ==== Examples
# stylesheet_link_tag "style" # =>