public
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/halorgium/mephisto.git
technoweenie (author)
Mon Mar 10 22:54:22 -0700 2008
commit  c62b1a257ddecd3d6b72b9e77c914bb7e2358d65
tree    f7bc4221faf930f75832682e5244f2ed0436582f
parent  165d9a73cc9ec17f2f2b69c2155a54cd2596788d parent  a1407eb22655e040d394c2b34b203d190891eda7
mephisto / config / boot.rb
100644 20 lines (16 sloc) 0.548 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
 
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)