Method: MotionPrime::AbstractCollectionSection#collection_data

Defined in:
motion-prime/sections/abstract_collection.rb

#collection_dataArray<Prime::Section>

Return sections which will be used to render as collection cells.

This method should be redefined in your collection section and must return array.

Returns:

  • (Array<Prime::Section>)

    array of sections



35
36
37
# File 'motion-prime/sections/abstract_collection.rb', line 35

def collection_data
  @model || []
end