Module: Gluttonberg::Public::CmsStylesheets
- Included in:
- Gluttonberg::Public
- Defined in:
- app/helpers/gluttonberg/public/cms_stylesheets.rb
Instance Method Summary collapse
-
#cms_managed_stylesheets_link_tag ⇒ Object
It generates css links for all published CMS based css.
Instance Method Details
#cms_managed_stylesheets_link_tag ⇒ Object
It generates css links for all published CMS based css
7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/gluttonberg/public/cms_stylesheets.rb', line 7 def cms_managed_stylesheets_link_tag if Rails.configuration.cms_based_public_css == true html = "" Gluttonberg::Stylesheet.all.each do |stylesheet| html << _stylesheet_tag_for(stylesheet) end html << "\n" html.html_safe end end |