Class: ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag
- Inherits:
-
AssetIncludeTag
- Object
- AssetIncludeTag
- ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag
- Defined in:
- actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
Constant Summary
Constants included from TagHelper
Instance Attribute Summary
Attributes inherited from AssetIncludeTag
Instance Method Summary collapse
Methods inherited from AssetIncludeTag
#include_tag, inherited, #initialize
Methods included from TagHelper
#cdata_section, #content_tag, #escape_once, #tag
Methods included from ActiveSupport::Concern
#append_features, extended, #included
Methods included from CaptureHelper
#capture, #content_for, #content_for?, #flush_output_buffer, #provide, #with_output_buffer
Constructor Details
This class inherits a constructor from ActionView::Helpers::AssetTagHelper::AssetIncludeTag
Instance Method Details
#asset_name ⇒ Object
10 11 12 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 10 def asset_name 'stylesheet' end |
#asset_tag(source, options) ⇒ Object
18 19 20 21 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 18 def asset_tag(source, ) # We force the :request protocol here to avoid a double-download bug in IE7 and IE8 tag("link", { "rel" => "stylesheet", "type" => Mime::CSS, "media" => "screen", "href" => path_to_asset(source, :protocol => :request) }.merge()) end |
#custom_dir ⇒ Object
23 24 25 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 23 def custom_dir config.stylesheets_dir end |
#extension ⇒ Object
14 15 16 |
# File 'actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb', line 14 def extension 'css' end |