RubyGems Navigation menu

deep_dirty 1.0.2

ActiveRecord dirty tracking that compares every attribute to it's value before type cast and marks all changes detected as changed attributes. This makes it possible to detect `user.name.upcase!` `user.roles << 'some_role'` and similar implicit changes. To make it automatic on `save`, this module sets up a `before_validation` callback when included into a model.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 1.0.2 - August 25, 2014 (7.5 KB)
  2. 1.0.1 - August 25, 2014 (7.5 KB)
  3. 1.0.0 - August 25, 2014 (7.5 KB)

Runtime Dependencies (1):

activemodel >= 3.0.0

Development Dependencies (3):

bundler ~> 1.6
rake >= 0
rspec >= 0

Owners:

Authors:

  • Laas Toom

SHA 256 checksum:

f2c1341fc912e59157d50098a0141b433d38603cc0196fa745a5a263c2d89be4

Total downloads 8,808

For this version 3,507

License:

MIT

Required Ruby Version: >= 0

Links: