lib/iruby/rails.rb in iruby-rails-1.0.0 vs lib/iruby/rails.rb in iruby-rails-1.1.0
- old
+ new
@@ -36,10 +36,17 @@
puts "Any modifications you make will be rolled back on exit"
else
puts "Loading #{::Rails.env} environment (Rails #{::Rails.version})"
end
- console = app.config.console || IRB
+ console =
+ if app.config.console
+ app.config.console
+ else
+ require "irb"
+ IRB
+ end
+
if defined?(console::ExtendCommandBundle)
console::ExtendCommandBundle.include(::Rails::ConsoleMethods)
end
end