lib/arql/app.rb in arql-0.2.1 vs lib/arql/app.rb in arql-0.2.2

- old
+ new

@@ -2,11 +2,11 @@ module Arql class App class << self - attr_accessor :log_io, :env, :prompt + attr_accessor :log_io, :env, :prompt, :instance def config @@effective_config end @@ -27,9 +27,10 @@ @options = options App.env = @options.env Connection.open(connect_options) @definition = Definition.new(effective_config) load_initializer! + App.instance = self end def connect_options connect_conf = effective_config.slice(:adapter, :host, :username, :password, :database, :encoding,