Permalink
Browse files

Fixed RAILS_ROOT dependency.

  • Loading branch information...
1 parent 3a1fb53 commit 27bf051fe1ea68f683960e7a364145b5f6620fd2 @evansagge evansagge committed with Michael Edgar Apr 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.rb
View
@@ -3,5 +3,5 @@
ActionView::Base.send(:include, Harsh::ErbMethods)
-harsh_sheets = Dir.entries(RAILS_ROOT+"/public/stylesheets/harsh/").reject {|s| s =~ /^\./}.map {|s| "harsh/"+s}
+harsh_sheets = Dir.entries(Rails.root.join('public', 'stylesheets', 'harsh')).reject {|s| s =~ /^\./}.map {|s| "harsh/"+s}
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :harsh => harsh_sheets

0 comments on commit 27bf051

Please sign in to comment.