Skip to content

Instantly share code, notes, and snippets.

@ramontayag
Created November 15, 2010 14:07
Show Gist options
  • Save ramontayag/700389 to your computer and use it in GitHub Desktop.
Save ramontayag/700389 to your computer and use it in GitHub Desktop.
def current_site_stylesheet_files_tag
if current_site
css_files = current_site.stylesheet_files
if css_files.empty?
nil
else
a = []
css_files.each do |css|
a << css.file.url
end
a << {:cache => "#{current_site.subdomain}_files"}
logger.debug("This is the a:::: #{a.inspect}")
stylesheet_link_tag a.flatten
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment