Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed RAILS_ROOT dependency.

  • Loading branch information...
commit 27bf051fe1ea68f683960e7a364145b5f6620fd2 1 parent 3a1fb53
@evansagge evansagge authored Michael Edgar committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  init.rb
View
2  init.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.