我们现在有
PaperTrail.config.has_paper_trail_defaults = {
on: %i(create update destroy)
}但是想要
PaperTrail.config.has_paper_trail_defaults = {
on: %i(create update destroy),
ignore: :updated_at
}由于某些原因,忽略是被忽视的。有什么建议吗?
发布于 2019-01-04 16:25:36
我相信ignore需要一个数组(或者哈希参数)
试着..。
ignore: [:updated_at]请注意,updated_at仍将出现在由于其他原因而创建的版本记录中。如果您不希望它出现在版本记录中,请使用skip
skip: [:updated_at]https://stackoverflow.com/questions/54041872
复制相似问题