lib/apartment.rb in apartment-0.11.0 vs lib/apartment.rb in apartment-0.11.1
- old
+ new
@@ -7,11 +7,10 @@
attr_writer :database_names, :excluded_models
# configure apartment with available options
def configure
yield self if block_given?
- Database.init
end
# Be careful not to use `return` here so both Proc and lambda can be used without breaking
def database_names
if @database_names.respond_to?(:call)
@@ -28,9 +27,10 @@
end
autoload :Database, 'apartment/database'
autoload :Migrator, 'apartment/migrator'
+ autoload :Reloader, 'apartment/reloader'
module Adapters
autoload :AbstractAdapter, 'apartment/adapters/abstract_adapter'
# Specific adapters will be loaded dynamically based on adapter in config
end