Skip to content

Commit

Permalink
Recent releases of Bundler makes even more simple to load Bundler.
Browse files Browse the repository at this point in the history
No need to take care of caching or pre-cached bundles anymore.
  • Loading branch information
weppos committed Apr 7, 2011
1 parent 166e0d9 commit 0c08b2f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions config.ru
@@ -1,15 +1,8 @@

# bundler

begin
# try to require the preresolved locked set of gems.
require ::File.expand_path('.bundle/environment', __FILE__)
rescue LoadError
# fall back on doing an unlocked resolve at runtime.
require 'rubygems'
require 'bundler'
Bundler.setup(:default)
end
require 'rubygems'
require 'bundler/setup'


# json
Expand Down

0 comments on commit 0c08b2f

Please sign in to comment.