I’ve got a situation where i have a model that whenever something
changes i want to drop a row in another table (audits) to indicate
that the record changed and who changed it. currently whenever i save
the data i make a call to the models audit method and pass in a User
object.
keep in mind that the model i am auditing does not reference a user,
which is why i have to pass in the User object to the audit call.
anyways, i want to add after_create and before destroy callbacks to
the model but I am hung up on how to pass the User object via the
callback.
Chris