Browse files

CSS file names are sorted before beeing put in URL

  • Loading branch information...
1 parent a27ff39 commit 3dc24668c42aacdbbd43a7089302bacde7b8f0ce @pgte committed Oct 14, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/styled_objects/helpers/stylesheet_link_tag.rb
View
2 lib/styled_objects/helpers/stylesheet_link_tag.rb
@@ -8,7 +8,7 @@ def self.included(base)
module InstanceMethods
def so_stylesheet_link_tag
- return "<link href=\"#{styledobject_path styled_objects_partial_css_paths.collect {|path| URI.encode(path.gsub(/:|\.css/, ''))}.join(':')}?#{styled_objects_max_mtime}\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />"
+ return "<link href=\"#{styledobject_path styled_objects_partial_css_paths.sort.collect {|path| URI.encode(path.gsub(/:|\.css/, ''))}.join(':')}?#{styled_objects_max_mtime}\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />"
end
end

0 comments on commit 3dc2466

Please sign in to comment.