MishkaCmsCore.Runtime.Resources.Changes.TenantFromSite (Mishka CMS Core v0.0.1)

Copy Markdown View Source

Runs the action under the tenant of the record's site_id.

A master's create names the site it writes for, and the rest of the action (the tenant-scoped validations, the version row) reads that site as its tenant. A record with no site_id, a global one, is left as it is.

create :master_create do
  change MishkaCmsCore.Runtime.Resources.Changes.TenantFromSite
end