action?
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
assign_attributes(id :
UUID |
Missing =
Missing, resource_type :
String |
Missing =
Missing, resource_id :
String |
Missing =
Missing, correlation_id :
String |
Nil |
Missing =
Missing, action :
String |
Missing =
Missing, changed_fields :
Array(
String) |
Missing =
Missing, diff :
JSON::Any |
Missing =
Missing, snapshot :
JSON::Any |
Nil |
Missing =
Missing, user_id :
String |
Nil |
Missing =
Missing, user_email :
String |
Nil |
Missing =
Missing, context :
JSON::Any |
Missing =
Missing, created_at :
Time |
Missing =
Missing)
Assign to multiple attributes.
Assign to multiple attributes from a model object
assign_attributes_from_json(json)
Unified change history for models that include History::Tracked.
Entries are written in the same transaction as the change they describe.
Filter by resource_type (the table name) and resource_id, or by
correlation_id to see changes recorded against a parent, e.g. every
permission change of a group.
assign_attributes_from_trusted_yaml(yaml)
Unified change history for models that include History::Tracked.
Entries are written in the same transaction as the change they describe.
Filter by resource_type (the table name) and resource_id, or by
correlation_id to see changes recorded against a parent, e.g. every
permission change of a group.
changed_fields?
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
changed_persist_attributes
Unified change history for models that include History::Tracked.
Entries are written in the same transaction as the change they describe.
Filter by resource_type (the table name) and resource_id, or by
correlation_id to see changes recorded against a parent, e.g. every
permission change of a group.
context?
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
context_assigned?
Unified change history for models that include History::Tracked.
Entries are written in the same transaction as the change they describe.
Filter by resource_type (the table name) and resource_id, or by
correlation_id to see changes recorded against a parent, e.g. every
permission change of a group.
context_change
Returns a Tuple of the previous and the current
value of an instance variable if it has changed
context_changed?
Unified change history for models that include History::Tracked.
Entries are written in the same transaction as the change they describe.
Filter by resource_type (the table name) and resource_id, or by
correlation_id to see changes recorded against a parent, e.g. every
permission change of a group.
context_present?
request details, see History::Metadata
context_removed?
Unified change history for models that include History::Tracked.
Entries are written in the same transaction as the change they describe.
Filter by resource_type (the table name) and resource_id, or by
correlation_id to see changes recorded against a parent, e.g. every
permission change of a group.
context_was
Unified change history for models that include History::Tracked.
Entries are written in the same transaction as the change they describe.
Filter by resource_type (the table name) and resource_id, or by
correlation_id to see changes recorded against a parent, e.g. every
permission change of a group.
context_will_change!
Include context in the set of changed attributes, whether it has changed or not.
created_at?
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
diff?
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
resource_id?
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
resource_type?
NOTE: use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.