![]() |
1
6
|
|
2
3
这是在Rails3的RailsCore中。 此处为文档: http://edgeapi.rubyonrails.org/classes/ActiveRecord/Transactions/ClassMethods.html#M001117 |
![]() |
3
2
你不会看到的
您可以尝试此插件: |
![]() |
4
1
after_commit plugin 启用以下语法:
|
![]() |
5
1
由于OP询问如何在提交事务后动态设置要执行的代码,所以提交后并不能解决他的问题。幸运的是有 after_commit_queue 宝石正好解决了这个问题。
|
![]() |
cluster1 · 采取独立的新行动的好处是什么? 6 月前 |
![]() |
Robert · 使用JSON或哈希时,将NULL替换为NIL 6 月前 |
![]() |
Fred Willmore · Rails控制器不呈现任何模板 1 年前 |
![]() |
Diogo Amaral · 实现API请求的正确方式 1 年前 |
![]() |
Meknassih · 在控制器方法中分配给模型没有任何作用 1 年前 |
![]() |
Michael Ding · Rails上的默认会话到期问题 1 年前 |
|
Flávio · 基于另外两个生成数组 1 年前 |