Sha256: 07ed5f1e24c36d47ba6d8d8a322b3ca5a0c00fcc489d89b548f4fce948e05c98
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
module RedHillConsulting::CascadingStylesheets::ActionView::Helpers module AssetTagHelper module StylesheetSources def self.included(base) base.class_eval do alias_method_chain :expand_sources, :cascade end end def expand_sources_with_cascade if @sources.delete(:cascades) [@controller.controller_name, "#{@controller.controller_name}/#{@controller.action_name}"].each do |source| @sources << source if File.exists?(File.join(ActionView::Helpers::AssetTagHelper::STYLESHEETS_DIR, source + '.css')) end end expand_sources_without_cascade end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harukizaemon-cascading_stylesheets-2.0.0 | lib/red_hill_consulting/cascading_stylesheets/action_view/helpers/asset_tag_helper.rb |