Sha256: 6662d786c068744c1e55ddecd996935620d815964ba827ad7bf77dc88ddc4039
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
[![Build Status](http://img.shields.io/travis/intellum/delayed_after_commit.svg?style=flat)](https://travis-ci.org/intellum/delayed_after_commit) # DelayedAfterCommit Exactly the same as after_commit, except it puts the job onto the Sidekiq queue. Allows you to queue active record methods, after they have been created or updated. Requires Sidekiq, and Rails >= 4. ## Installation Add this line to your application's Gemfile: ```ruby gem 'delayed_after_commit' ``` And then execute: $ bundle Or install it yourself as: $ gem install delayed_after_commit ## Usage ```ruby class User < ActiveRecord::Base include DelayedAfterCommit delayed_on_update :increment_number_of_updates delayed_on_create :calculate_number_of_letters_in_name end ``` ## Roadmap - Allow asyncronous callbacks on destroying objects ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/intellum/delayed_after_commit.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
delayed_after_commit-0.1.0 | README.md |