Sha256: c96711840a3c19e3a0bcb6816e17ec3a07a603ed4cf4c3b05fe0dc0c1077cbab
Contents?: true
Size: 557 Bytes
Versions: 32
Compression:
Stored size: 557 Bytes
Contents
module Refinery module Helpers module HeadHelper def stylesheets_for_head(stylesheets, theme = false) # you can disable the use of the built-in refinery stylesheets by disabling the setting. stylesheets.map! {|ss| ["refinery/#{ss}", ss] }.flatten! if RefinerySetting.find_or_set(:frontend_refinery_stylesheets_enabled, true) # if theme is set, use themed stylesheet links. stylesheets.map! {|ss| ss =~ /^refinery\// ? ss : "/theme/stylesheets/#{ss}" } if theme stylesheets end end end end
Version data entries
32 entries across 32 versions & 2 rubygems