Skip to content

Instantly share code, notes, and snippets.

@scashin133
Created February 1, 2011 21:46
Show Gist options
  • Save scashin133/806758 to your computer and use it in GitHub Desktop.
Save scashin133/806758 to your computer and use it in GitHub Desktop.
snippet for requiring all gems in a Gemfile without having to load the rails environment or run with bundle exec
require 'rubygems'
require 'bundler'
ENV['BUNDLE_GEMFILE']="/path/to/Gemfile"
Bundler.require
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment