Rails 3 - How to Create a JSON Object to store in the database

后端 未结 3 657
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 07:33

I\'m creating an AuditLog observer that watches over several models.

I\'d like the observer to have an after_create, which creates a JSON object that is stored in a data

3条回答
  •  忘掉有多难
    2021-01-30 07:37

    Take a look at this: http://github.com/laserlemon/vestal_versions

    If it's not what you're looking for, it will at least show you it's done.

提交回复
热议问题