Class: DatastaxRails::Types::DynamicList

Inherits:
Array
  • Object
show all
Includes:
DirtyCollection
Defined in:
lib/datastax_rails/types/dynamic_list.rb

Overview

A collection type that allows you to store ordered arrays in Cassandra. Changes are tracked by hooking into ActiveModel's built-in change tracking.

Instance Method Summary collapse

Methods included from DirtyCollection

#delete, ignore_modifications

Constructor Details

#initialize(record, name, collection) ⇒ DynamicList

Returns a new instance of DynamicList


9
10
11
# File 'lib/datastax_rails/types/dynamic_list.rb', line 9

def initialize(record, name, collection)
  super(record, name, collection || [])
end