RubyGems.org

nostalgia

0.0.1

Often I want to evaluate what changed on an object after it has saved and has been transactionally committed. One use case is enqueuenig a background job when a specific attribute changed. Typically you should wait until after_commit to enqueue the job. This ensures that your workers will have access to the updates that were being made inside the transaction. This is a problem because ActiveRecord forgets the changes after_save. This gem keeps those changes around for later inspection and evaluation.

installgem install nostalgia
Authors

Aaron Scruggs

621 total downloads 621 for this version
Owners

5dc846acf6a62771943f8ab267a03e57

Licenses

MIT

Gemfile
gem 'nostalgia', '~> 0.0.1'
Versions
  1. 0.0.1 April 28, 2013 (5.5 KB)
Development Dependencies
  1. bundler ~> 1.3
  2. rake >= 0