2010-02-24 09:31:17 +08:00
|
|
|
begin
|
|
|
|
require File.expand_path('../.bundle/environment', __FILE__)
|
|
|
|
rescue LoadError
|
|
|
|
begin
|
2010-03-28 03:06:27 +08:00
|
|
|
# bust gem prelude
|
|
|
|
if defined? Gem
|
|
|
|
Gem.cache
|
|
|
|
gem 'bundler'
|
|
|
|
else
|
|
|
|
require 'rubygems'
|
|
|
|
end
|
2010-02-24 09:31:17 +08:00
|
|
|
require 'bundler'
|
|
|
|
Bundler.setup
|
|
|
|
rescue LoadError
|
2010-03-01 08:34:57 +08:00
|
|
|
module Bundler
|
|
|
|
def self.require(*args, &block); end
|
|
|
|
def self.method_missing(*args, &block); end
|
|
|
|
end
|
|
|
|
|
2010-02-24 09:31:17 +08:00
|
|
|
%w(
|
|
|
|
actionmailer
|
|
|
|
actionpack
|
|
|
|
activemodel
|
|
|
|
activerecord
|
|
|
|
activeresource
|
|
|
|
activesupport
|
|
|
|
railties
|
|
|
|
).each do |framework|
|
|
|
|
$:.unshift File.expand_path("../#{framework}/lib", __FILE__)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|