From e030f26ad3de98205edec9d8b59ecca9508cb57d Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 25 May 2012 15:58:16 +0100 Subject: Simplify AR configuration code. Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc. --- activerecord/test/active_record/connection_adapters/fake_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/test/active_record') diff --git a/activerecord/test/active_record/connection_adapters/fake_adapter.rb b/activerecord/test/active_record/connection_adapters/fake_adapter.rb index 69dfd2503e..1199be68eb 100644 --- a/activerecord/test/active_record/connection_adapters/fake_adapter.rb +++ b/activerecord/test/active_record/connection_adapters/fake_adapter.rb @@ -1,6 +1,6 @@ module ActiveRecord - class Base - def self.fake_connection(config) + module ConnectionHandling + def fake_connection(config) ConnectionAdapters::FakeAdapter.new nil, logger end end -- cgit v1.2.3