Forked from skojin/irb_require_without_bundler_hack.rb
Created
April 14, 2016 17:05
-
-
Save bogdanRada/af2697c375e84a5c4d642b139844def4 to your computer and use it in GitHub Desktop.
workaround to load irb specific gem (loaded in .irbrc) in bundler environment, like rails3 console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add all gems in the global gemset to the $LOAD_PATH so they can be used in rails3 console with bundler | |
if defined?(::Bundler) | |
$LOAD_PATH.concat Dir.glob("#{ENV['rvm_path']}/gems/#{ENV['rvm_ruby_string']}@global/gems/*/lib") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment