Open camerondrysdale opened 1 year ago
It seems doing:
class MenuItem < ApplicationRecord
belongs_to :menu
audited associated_with: :product
end
Does indeed work... however we lose the structure of the audits then... is this the correct way to handle multiple level models in Audited?
We have a model structure like this in our app:
And we want to see audits information against our
Product
when either theMenu
orMenuItem
is updated. We can see theMenu
changes being displayed in the audits, but theMenuItem
updates aren't coming through so seems it doesn't see them as an association through theMenu
associated_with
.Does the Audited gem only support one-level deep associations? Or do we need to link the
MenuItem
to theProduct
(even though it doesn't have a direct relation to it).