Method: ThemesHelper#stylesheet_link_tag
- Defined in:
- vendor/plugins/themes/app/helpers/themes_helper.rb
#stylesheet_link_tag(*sources) ⇒ Object
18 19 20 21 22 23 24 |
# File 'vendor/plugins/themes/app/helpers/themes_helper.rb', line 18 def stylesheet_link_tag(*sources) theme = (arguments = sources.dup).[:theme] == true # don't ruin the current sources object tag = super # inject /theme/ into the stylesheet link tag href if this is themed. tag.gsub!(/\/stylesheets\//, "/theme/stylesheets/") if theme tag.gsub(/theme=(.+?)\ /, '') # we need to remove any addition of theme='false' etc. end |