add rails root to load path

in ruby 1.9, the load path doesn't include the current working directory

Change-Id: Ib61070da970af462dd58885477f97e83fe77b36f
Reviewed-on: https://gerrit.instructure.com/5841
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
This commit is contained in:
Brian Palmer 2011-09-26 23:43:00 -06:00
parent 766ac9b80f
commit ead2a3344a
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# Configure your app in config/environment.rb and config/environments/*.rb
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
$LOAD_PATH.unshift RAILS_ROOT
module Rails
class << self