Sha256: c28ea61fb118a3ffa54df937b224ee33bcb236c48d28d2249d6f3173d85ed5ba
Contents?: true
Size: 303 Bytes
Versions: 5
Compression:
Stored size: 303 Bytes
Contents
module CassandraObject module Connection extend ActiveSupport::Concern included do class_attribute :connection end module ClassMethods def establish_connection(spec) self.connection = Cassandra.new(spec[:keyspace], spec[:servers]) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems