khronos 0.0.1.pre2 → 0.0.1.pre3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/khronos/storage/adapter/activerecord.rb +4 -4
- data/lib/khronos/version.rb +1 -1
- data/lib/khronos.rb +0 -1
- data/spec/spec_helper.rb +2 -0
- data/spec/tmp/scheduler.db +0 -0
- data/spec/tmp/sqlite3.db +0 -0
- metadata +1 -1
@@ -10,11 +10,11 @@ module Khronos
|
|
10
10
|
def self.connect!(url)
|
11
11
|
require 'active_record'
|
12
12
|
|
13
|
-
if File.exists?("config/database.yml")
|
14
|
-
|
15
|
-
else
|
13
|
+
#if File.exists?("config/database.yml")
|
14
|
+
#::ActiveRecord::Base.establish_connection(YAML.load_file("config/database.yml")[ENV['RACK_ENV']])
|
15
|
+
#else
|
16
16
|
::ActiveRecord::Base.establish_connection(url)
|
17
|
-
end
|
17
|
+
#end
|
18
18
|
|
19
19
|
#
|
20
20
|
# ::ActiveRecord::Base.logger = ::Logger.new(STDOUT)
|
data/lib/khronos/version.rb
CHANGED
data/lib/khronos.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/tmp/scheduler.db
CHANGED
Binary file
|
data/spec/tmp/sqlite3.db
CHANGED
Binary file
|