Browse files

Fix group argument to bundle console

  • Loading branch information...
1 parent e2e60c2 commit 93fcbd7f9ddb38b899b0e1ef3ee443a6b60df7e9 Andre Arko and Terence Lee committed Jan 14, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/bundler/cli.rb
View
3 lib/bundler/cli.rb
@@ -430,8 +430,7 @@ def open(name)
desc "console [GROUP]", "Opens an IRB session with the bundle pre-loaded"
def console(group = nil)
- require 'bundler/setup'
- group ? Bundler.require(:default, group) : Bundler.require
+ group ? Bundler.require(:default, *(group.split.map! {|g| g.to_sym })) : Bundler.require
ARGV.clear
require 'irb'

0 comments on commit 93fcbd7

Please sign in to comment.