1 unless defined?(RAILS_ROOT)
2 root_path = File.join(File.dirname(__FILE__), '..')
3 unless RUBY_PLATFORM =~ /mswin32/
5 root_path = Pathname.new(root_path).cleanpath(true).to_s
10 if File.directory?("#{RAILS_ROOT}/vendor/rails")
11 require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
17 Rails::Initializer.run(:set_load_path)