Skip to content

Instantly share code, notes, and snippets.

@mpereira
Created September 18, 2011 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpereira/1225716 to your computer and use it in GitHub Desktop.
Save mpereira/1225716 to your computer and use it in GitHub Desktop.
# Add all gems in the global gemset to the $LOAD_PATH so they can be used even
# in bundled ruby projects without declaring them in the Gemfile.
if defined?(::Bundler)
$LOAD_PATH.concat(Dir.glob("#{ENV['rvm_ruby_global_gems_path']}/gems/*/lib"))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment