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


                                                     
                                                            

                        
   
 


                                                               

                       

   
                                      
unless defined?(RAILS_ROOT)
  root_path = File.join(File.dirname(__FILE__), '..')
  unless RUBY_PLATFORM =~ /mswin32/
    require 'pathname'
    root_path = Pathname.new(root_path).cleanpath(true).to_s
  end
  RAILS_ROOT = root_path
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)