Permalink
Browse files

allow to run console without irb/completion and readlines, fixes #1640

  • Loading branch information...
ujifgc committed Apr 1, 2014
1 parent dfedf85 commit 1243a21246eb7c5dffa74086dd2aba5de489ba4d
Showing with 4 additions and 1 deletion.
  1. +4 −1 padrino-core/lib/padrino-core/cli/base.rb
@@ -69,7 +69,10 @@ def console(*args)
require File.expand_path("../../version", __FILE__)
ARGV.clear
require 'irb'
require "irb/completion"
begin
require "irb/completion"
rescue LoadError
end
require File.expand_path('config/boot.rb')
puts "=> Loading #{Padrino.env} console (Padrino v.#{Padrino.version})"
require File.expand_path('../console', __FILE__)

0 comments on commit 1243a21

Please sign in to comment.