RubyGems Navigation menu

delta_attributes 1.0.3

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

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 1.0.3 - September 24, 2013 (9.5KB)
  2. 1.0.2 - August 30, 2013 (9.5KB)
  3. 0.0.4 - November 21, 2012 (7.5KB)
  4. 0.0.3 - November 20, 2012 (7.5KB)
  5. 0.0.2 - November 20, 2012 (7.5KB)
全てのバージョンを表示(全8件)

Runtime依存関係 (1):

rails >= 3.2

所有者:

作者:

  • Oleh Novosad, Yuriy Lavryk, Arya

SHA 256チェックサム:

934e01bab58ea4ad5cc097c26690b3201e04240acea7b492238f3d378531b882

累計ダウンロード数 20,257

このバージョンのみ 3,980

ライセンス:

MIT

必要なRubyのバージョン: なし

リンク: