RubyGems Navigation menu

delta_attributes 0.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 + d WHERE id = 1; where d is difference between old value and new value of that field. This solves problem with simultaneous updating of the same field by different threads. Source code: https://github.com/izbor/delta_attributes

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 1.0.3 - September 24, 2013 (9,5 ko)
  2. 1.0.2 - August 30, 2013 (9,5 ko)
  3. 0.0.4 - November 21, 2012 (7,5 ko)
  4. 0.0.3 - November 20, 2012 (7,5 ko)
  5. 0.0.2 - November 20, 2012 (7,5 ko)
Voir toutes les versions (8)

Dépendances de Runtime (1):

rails ~> 3.2.0

Propriétaires:

Auteurs:

  • Oleh Novosad, Yuriy Lavryk, Arya

Total de contrôle SHA 256:

d3de42e0f107f66cbe35696eec1f2a51b075dbf7240839a9761e7996e56bc30f

Total de téléchargements 20 395

Pour cette version 3 316

License:

aucune

Version de Ruby requise: None

Liens: