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