Skip to content

Commit

Permalink
Update the Bundler snippet for 0.9.15 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect authored and wycats committed Apr 12, 2010
1 parent 86defed commit ca37865
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions rails.gemspec
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.email = 'david@loudthinking.com'
s.homepage = 'http://www.rubyonrails.org'
s.rubyforge_project = 'rails'

s.files = []
s.require_path = []

Expand All @@ -24,5 +24,5 @@ Gem::Specification.new do |s|
s.add_dependency('activeresource', version)
s.add_dependency('actionmailer', version)
s.add_dependency('railties', version)
s.add_dependency('bundler', '>= 0.9.14')
s.add_dependency('bundler', '>= 0.9.19')
end
18 changes: 5 additions & 13 deletions railties/lib/rails/generators/rails/app/templates/config/boot.rb
@@ -1,14 +1,6 @@
# Use locked gems if present.
begin
require File.expand_path('../../.bundle/environment', __FILE__)

rescue LoadError
# Otherwise, use RubyGems.
require 'rubygems'

# And set up the gems listed in the Gemfile.
if File.exist?(File.expand_path('../../Gemfile', __FILE__))
require 'bundler'
Bundler.setup
end
require 'rubygems'
# Set up gems listed in the Gemfile.
if File.exist?(File.expand_path('../../Gemfile', __FILE__))
require 'bundler'
Bundler.setup
end

0 comments on commit ca37865

Please sign in to comment.