lib/shinq.rb in shinq-0.3.0 vs lib/shinq.rb in shinq-0.4.0
- old
+ new
@@ -29,8 +29,16 @@
def self.connection(db_name: self.default_db)
@connections ||= {}
@connections[db_name] ||= setup_db_connection(db_name)
end
+
+ def self.logger
+ @logger
+ end
+
+ def self.logger=(log)
+ @logger = log
+ end
end
require 'shinq/rails' if defined?(::Rails::Engine)