Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Created February 9, 2010 08:18
Show Gist options
  • Select an option

  • Save adelcambre/299017 to your computer and use it in GitHub Desktop.

Select an option

Save adelcambre/299017 to your computer and use it in GitHub Desktop.
diff --git a/lib/bundler/setup.rb b/lib/bundler/setup.rb
index e984348..05bd7e6 100644
--- a/lib/bundler/setup.rb
+++ b/lib/bundler/setup.rb
@@ -1,3 +1,7 @@
-require 'bundler'
+begin
+ require '.bundle/environment.rb'
+rescue LoadError
+ require 'bundler'
+end
Bundler.setup
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment