Created
May 24, 2010 15:57
-
-
Save sterrym/412044 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Bundler (preferred) | |
begin | |
require File.expand_path('../../.bundle/environment', __FILE__) | |
rescue LoadError | |
require 'rubygems' | |
require 'bundler' | |
Bundler.setup | |
# To use 2.x style vendor/rails and RubyGems | |
# | |
# vendor_rails = File.expand_path('../../vendor/rails', __FILE__) | |
# if File.exist?(vendor_rails) | |
# Dir["#{vendor_rails}/*/lib"].each { |path| $:.unshift(path) } | |
# end | |
# | |
# require 'rubygems' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment