Skip to content

Instantly share code, notes, and snippets.

@qichunren
Created June 6, 2012 09:41
Show Gist options
  • Save qichunren/2880972 to your computer and use it in GitHub Desktop.
Save qichunren/2880972 to your computer and use it in GitHub Desktop.
use bundler to require gems
require 'rubygems'
require 'bundler'
ENV["BUNDLE_GEMFILE"] = File.expand_path("../Gemfile", __FILE__)
Bundler.require
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment