bogdanrada
4/14/2016 - 5:05 PM

workaround to load irb specific gem (loaded in .irbrc) in bundler environment, like rails3 console

workaround to load irb specific gem (loaded in .irbrc) in bundler environment, like rails3 console

# 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