Class: DatastaxRails::Types::DynamicList
- 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
-
#initialize(record, name, collection) ⇒ DynamicList
constructor
A new instance of DynamicList.
Methods included from DirtyCollection
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 |