]> git.wincent.com - wikitext.git/commit
rails/init.rb: trust LOAD_PATH
authorWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 15:46:55 +0000 (17:46 +0200)
committerWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 15:46:55 +0000 (17:46 +0200)
commit509d9e3252b0c5030e512ffbd6f519bd9cfb3cbf
tree8e4078a07293c6362a374fb0ed75f5bb3a34d9ce
parent9fa297a7c0cbe582d512be05f32643652a6ef051
rails/init.rb: trust LOAD_PATH

Rather than doing requires with absolute paths, trust the calling
environment (in this case, Rails 2) to set up the LOAD_PATH
appropriately.

This saves us later on re-requiring the same file with a different,
relative path and needlessly re-evaluating the same code.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
rails/init.rb