Why does Ruby-1.9.2-p0 require an additional ../ for relative paths
when compared to the same code for ruby1.8?

if RUBY_VERSION < '1.9'
  require File.dirname(__FILE__) + library
else
  require_relative File.dirname(__FILE__) + '/..' + library
end

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to