Class: Tina4::Realtime::Attachment
- Defined in:
- lib/tina4/realtime/attachment.rb
Overview
Attachment - a file linked to a channel (and optionally a message). channel_id scopes the file for permission checks; message_id is nil until the file is attached to a posted message. storage_key is the StorageBackend key; the row carries only metadata, never the blob.
Method Summary
Methods inherited from ORM
all, auto_crud, auto_crud=, auto_map, auto_map=, belongs_to, clear_rel_cache, count, create, create_table, db, db=, #delete, eager_load, #errors, exists, field_mapping, field_mapping=, find, find_by_id, find_or_fail, #force_delete, from_hash, get_db, get_db_column, #get_error, has_many, has_one, inherited, #initialize, #last_error, #load, model_subclasses, #persisted?, query, relationship_definitions, #restore, #save, scope, select, #select, select_one, soft_delete, soft_delete=, soft_delete_field, soft_delete_field=, #to_array, #to_h, #to_json, #to_s, #validate, where, with_trashed
Methods included from FieldTypes
Constructor Details
This class inherits a constructor from Tina4::ORM