Sha256: 0edfd23b7841a32071e7293a785bf624a1c6e27e1698cbeb0c36ef21fac48fc5
Contents?: true
Size: 482 Bytes
Versions: 13
Compression:
Stored size: 482 Bytes
Contents
module Superstore module Connection extend ActiveSupport::Concern module ClassMethods def adapter @@adapter ||= adapter_class.new(config) end def adapter_class case config[:adapter] when 'hstore' Superstore::Adapters::HstoreAdapter when nil, 'cassandra' Superstore::Adapters::CassandraAdapter else raise "Unknown adapter #{config[:adapter]}" end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems