You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

boot.rb 548B

12345678910111213141516171819
  1. # Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
  2. unless defined?(RAILS_ROOT)
  3. root_path = File.join(File.dirname(__FILE__), '..')
  4. unless RUBY_PLATFORM =~ /mswin32/
  5. require 'pathname'
  6. root_path = Pathname.new(root_path).cleanpath(true).to_s
  7. end
  8. RAILS_ROOT = root_path
  9. end
  10. if File.directory?("#{RAILS_ROOT}/vendor/rails")
  11. require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
  12. else
  13. require 'rubygems'
  14. require 'initializer'
  15. end
  16. Rails::Initializer.run(:set_load_path)