Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (16 sloc) 0.639 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
# Lessens Debians need to edit.
require "rubygems" rescue nil

# Since Bundler is not really a 'must have' for Rails development just send off
# a warning and see if the sytem continues to load, the user can optionally use
# RADIANT_NOWARNINGS to disable it.

if File.file?(ENV['BUNDLE_GEMFILE'])
  begin
    require 'bundler/setup'
  rescue LoadError
    unless ENV['RADIANT_NOWARNINGS'] == true
      $stderr.puts 'WARNING: It seems you do not have Bundler installed.'
      $stderr.puts 'WARNING: You can install it by doing `gem install bundler`'
    end
  end
end
Something went wrong with that request. Please try again.