Sha256: b8b532974c772c948b66db283a16a52eb559bfff0369e0c03b05b7016a864344

Contents?: true

Size: 320 Bytes

Versions: 2

Compression:

Stored size: 320 Bytes

Contents

module Archer
  class Engine < Rails::Engine
    console do
      # TODO remove in 0.3.0
      Archer.history_file ||= Rails.root.join("tmp", ".irb-history")

      # need IRB context to be ready before Archer.start
      ::IRB::Irb.prepend(Archer::Irb)

      at_exit do
        Archer.save
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
archer-rails-0.2.2 lib/archer/engine.rb
archer-rails-0.2.1 lib/archer/engine.rb