class ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag - actionpack-3.2.22 Documentation

# class ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag

### Public Instance Methods

asset_name() click to toggle source

    # File lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb, line 10
    def asset_name
      'stylesheet'
    end

asset_tag(source, options) click to toggle source

    # File lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb, line 18
    def asset_tag(source, options)
      # 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(options))
    end

custom_dir() click to toggle source

    # File lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb, line 23
    def custom_dir
      config.stylesheets_dir
    end

extension() click to toggle source

    # File lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb, line 14
    def extension
      'css'
    end