Skip to content

Commit

Permalink
Ensure Rails root Pathnames are converted to strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
oggy committed May 1, 2011
1 parent 5af9fc7 commit fb0b955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/bug/filtered_backtrace.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def filtered_backtrace


def root_for_backtrace_filtering(sub_path = nil) def root_for_backtrace_filtering(sub_path = nil)
if defined?(Rails) && Rails.respond_to?(:root) if defined?(Rails) && Rails.respond_to?(:root)
sub_path ? Rails.root.join(sub_path) : Rails.root (sub_path ? Rails.root.join(sub_path) : Rails.root).to_s
else else
root = if defined?(RAILS_ROOT) root = if defined?(RAILS_ROOT)
RAILS_ROOT RAILS_ROOT
Expand Down

0 comments on commit fb0b955

Please sign in to comment.