Declare userstamps!
in your model to add creator
and updater
methods to your document. The values must be set manually like so:
Note that your users must be in a model with a class named User
for this to work.
In the above example, p.creator
would result in the same user as u
and p.updater
would result in the same user as u2
.