lib/apartment/database.rb in apartment-0.22.1 vs lib/apartment/database.rb in apartment-0.23.0
- old
+ new
@@ -1,9 +1,8 @@
require 'forwardable'
module Apartment
-
# The main entry point to Apartment functions
#
module Database
extend self
@@ -34,11 +33,10 @@
adapter_method = 'jdbc_postgresql_adapter'
end
end
begin
- require "apartment/adapters/abstract_jdbc_adapter" if defined?(JRUBY_VERSION)
require "apartment/adapters/#{adapter_method}"
rescue LoadError
raise "The adapter `#{adapter_method}` is not yet supported"
end
@@ -62,9 +60,7 @@
# Fetch the rails database configuration
#
def config
@config ||= Rails.configuration.database_configuration[Rails.env].symbolize_keys
end
-
end
-
end
\ No newline at end of file