]> git.openstreetmap.org Git - rails.git/blob - config/boot.rb
Require arel 2.0.8 or later to avoid problems with Postgres enums
[rails.git] / config / boot.rb
1 require 'rubygems'
2
3 # Set up gems listed in the Gemfile.
4 gemfile = File.expand_path('../../Gemfile', __FILE__)
5 begin
6   ENV['BUNDLE_GEMFILE'] = gemfile
7   require 'bundler'
8   Bundler.setup
9 rescue Bundler::GemNotFound => e
10   STDERR.puts e.message
11   STDERR.puts "Try running `bundle install`."
12   exit!
13 end if File.exist?(gemfile)