lib/superstore/connection.rb in superstore-1.2.0 vs lib/superstore/connection.rb in superstore-2.0.0

- old
+ new

@@ -2,18 +2,16 @@ module Connection extend ActiveSupport::Concern module ClassMethods def adapter - @@adapter ||= adapter_class.new(config) + @adapter ||= adapter_class.new(config) end def adapter_class case config[:adapter] - when 'hstore' - Superstore::Adapters::HstoreAdapter - when nil, 'cassandra' - Superstore::Adapters::CassandraAdapter + when nil, 'jsonb' + Superstore::Adapters::JsonbAdapter else raise "Unknown adapter #{config[:adapter]}" end end end