lib/archer/engine.rb in archer-rails-0.2.0 vs lib/archer/engine.rb in archer-rails-0.2.1
- old
+ new
@@ -1,9 +1,12 @@
module Archer
class Engine < Rails::Engine
console do
+ # TODO remove in 0.3.0
Archer.history_file ||= Rails.root.join("tmp", ".irb-history")
- Archer.start
+
+ # need IRB context to be ready before Archer.start
+ ::IRB::Irb.prepend(Archer::Irb)
at_exit do
Archer.save
end
end