lib/arql/app.rb in arql-0.1.27 vs lib/arql/app.rb in arql-0.1.28
- old
+ new
@@ -2,11 +2,11 @@
module Arql
class App
class << self
- attr_accessor :log_io
+ attr_accessor :log_io, :env
def config
@@effective_config
end
end
@@ -15,9 +15,10 @@
require 'active_support/all'
require 'active_record'
require "arql/connection"
require "arql/definition"
@options = options
+ App.env = @options.env
Connection.open(connect_options)
@definition = Definition.new(effective_config)
load_initializer!
end