Skip to content
Create a gist now

Instantly share code, notes, and snippets.

# This configuration will work on heroku (16.04.2010)
# congig/boot.rb (rails3 app) or config/preinitializer.rb (rails 2.3.5 app)
# Use locked gems if present.
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.