aboutsummaryrefslogblamecommitdiffstats
path: root/railties/environments/boot.rb
blob: 9e35fb6c15c76ee5d728d2d949761cc0b0c9b7f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
                           
                  


                                                                   
 


                                                               

                       


                                     
unless defined?(RAILS_ROOT)
require 'pathname'
  root_path = Pathname.new(File.join(File.dirname(__FILE__), '..'))
  RAILS_ROOT = root_path.cleanpath.to_s + '/'
end

if File.directory?("#{RAILS_ROOT}/vendor/rails")
  require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
else
  require 'rubygems'
  require 'initializer'
end

Rails::Initializer.run(:set_load_path)