lib/second_base.rb in secondbase-2.1.3 vs lib/second_base.rb in secondbase-2.1.4

- old
+ new

@@ -11,10 +11,10 @@ extend ActiveSupport::Autoload autoload :Base def self.config(env = nil) - config = ActiveRecord::Base.configurations[Railtie.config_key] + config = Rails.application.config.database_configuration[Railtie.config_key] config ? config[env || Rails.env] : nil end end