This gem makes updating specified number fields by ActiveRecord in unusual way. Instead of generating sql script to update value in usual way like this: UPDATE users SET money = 10 WHERE id = 1; It replaces it with UPDATE users SET money = money + delta WHERE id = 1; where delta is difference between old value and new value of that field. This solves problem with simultaneous updating of the same field by different threads (problem known as race condition). Source code: https://github.com/izbor/delta_attributes
Required Ruby Version
None
Authors
Oleh Novosad, Yuriy Lavryk, Arya
Versions
-
1.0.3
-
source
- 1.0.3 source September 24, 2013 (9.5 KB)
-
-
1.0.2
-
source
- 1.0.2 source August 30, 2013 (9.5 KB)
-
-
0.0.4
-
source
- 0.0.4 source November 21, 2012 (7.5 KB)
-
-
0.0.3
-
source
- 0.0.3 source November 20, 2012 (7.5 KB)
-
-
0.0.2
-
source
- 0.0.2 source November 20, 2012 (7.5 KB)
-