Skip to content

Commit

Permalink
FIX: Rails.root returns Pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
knoopx committed Dec 2, 2010
1 parent 5f9a98e commit 6b671d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ApplicationHelper
def strip_rails_root(dir)
ret = dir.gsub(Rails.root, "")
ret = dir.gsub(Rails.root.to_s, "")
ret = ret[1 .. -1] if ret =~ Regexp.new("^/")
ret
end
Expand Down

0 comments on commit 6b671d4

Please sign in to comment.