Voile.Schema.Catalog.Collection (Voile v0.1.27)

Copy Markdown View Source

Summary

Functions

Get attachments for this collection filtered by file type

Check if collection is a child collection (has parent)

Get collection types for dropdown

Get primary attachment for this collection

Check if collection is a root collection (no parent)

Functions

attachments_by_type(collection, file_type)

Get attachments for this collection filtered by file type

child_collection?(collection)

Check if collection is a child collection (has parent)

collection_type_options()

Get collection types for dropdown

primary_attachment(collection)

Get primary attachment for this collection

remove_thumbnail_changeset(collection)

root_collection?(collection)

Check if collection is a root collection (no parent)