From e6cdb3a6ceaaff934c47d21732314f2ea9391d7e Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Thu, 7 Aug 2014 09:19:58 +0300 Subject: [PATCH] style fix --- spec/support/kneet_connections.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/spec/support/kneet_connections.rb b/spec/support/kneet_connections.rb index 7de8cc59..99c91fd3 100644 --- a/spec/support/kneet_connections.rb +++ b/spec/support/kneet_connections.rb @@ -1,9 +1,11 @@ -class ActiveRecord::Base - mattr_accessor :shared_connection - @@shared_connection = nil +module ActiveRecord + class Base + mattr_accessor :shared_connection + @@shared_connection = nil - def self.connection - @@shared_connection || retrieve_connection + def self.connection + @@shared_connection || retrieve_connection + end end end