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