lib/arql/app.rb in arql-0.2.14 vs lib/arql/app.rb in arql-0.3.0
- old
+ new
@@ -2,11 +2,11 @@
module Arql
class App
class << self
- attr_accessor :log_io, :env, :prompt, :instance
+ attr_accessor :log_io, :env, :prompt, :instance, :connect_options
def config
@@effective_config
end
@@ -25,10 +25,11 @@
require 'composite_primary_keys'
require "arql/connection"
require "arql/definition"
@options = options
App.env = @options.env
- Connection.open(connect_options)
+ App.connect_options = connect_options
+ Connection.open(App.connect_options)
@definition = Definition.new(effective_config)
load_initializer!
App.instance = self
end