RubyGems Navigation menu

delta_attributes 0.0.1

This gem makes updating specified number fields by ActiveRecord in unusual way. Instead to generate 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 same field.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 1.0.3 - September 24, 2013 (9.5 KB)
  2. 1.0.2 - August 30, 2013 (9.5 KB)
  3. 0.0.4 - November 21, 2012 (7.5 KB)
  4. 0.0.3 - November 20, 2012 (7.5 KB)
  5. 0.0.2 - November 20, 2012 (7.5 KB)
  6. 0.0.1 - November 18, 2012 (7 KB)
Show all versions (8 total)

Runtime Dependencies (1):

rails ~> 3.2.8

Owners:

Authors:

  • izbor

SHA 256 checksum:

= Copy to clipboard Copied!

Total downloads 20,408

For this version 3,308

Licenses:

N/A

Required Ruby Version: None

Links: