Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 2769

Show
Ignore:
Timestamp:
10/27/05 17:09:00 (3 years ago)
Author:
ulysses
Message:

Recognize ./#{RAILS_ROOT} as RAILS_ROOT in error traces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r2767 r2769  
    11*SVN* 
     2 
     3* Recognize ./#{RAILS_ROOT} as RAILS_ROOT in error traces [Nicholas Seckar] 
    24 
    35* Remove ARStore session fingerprinting. [Nicholas Seckar] 
  • trunk/actionpack/lib/action_controller/templates/rescues/_trace.rhtml

    r2688 r2769  
    66  ] 
    77  if defined?(RAILS_ROOT) 
    8     traces.each { |name, trace| trace.map! { |p| p.gsub(/^#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } } 
     8    traces.each { |name, trace| trace.map! { |p| p.gsub(/^(?:\.\/)?#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } } 
    99  end 
    1010  names = traces.collect {|name, trace| name}