Skip to content
Browse files

Update Rails 2.3 snippet to set location of the Gemfile

  • Loading branch information...
1 parent 328611a commit 0f2f5f1131208a5d891143e71abd2b5dc85e56af @indirect indirect committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/pages/rails23.haml
View
3 src/pages/rails23.haml
@@ -33,12 +33,13 @@
require "rubygems"
require "bundler"
- if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.5")
+ if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.20")
raise RuntimeError, "Your bundler version is too old." +
"Run `gem install bundler` to upgrade."
end
# Set up load paths for all bundled gems
+ ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
Bundler.setup
rescue Bundler::GemNotFound
raise RuntimeError, "Bundler couldn't find some gems." +

0 comments on commit 0f2f5f1

Please sign in to comment.
Something went wrong with that request. Please try again.