0.01
No release in over 3 years
Low commit activity in last 3 years
Flexible acts_as_sequenced replacement
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.1

Runtime

 Project Readme

Gem Version

sequence_on

It is a replacement for act_as_sequence, where you can specify a lambda to determine how to generate the scope.

UPGRADE

Version 0.1.0

This version removes global lock on a table and uses pg_advisory_lock.

[Breaking change]

Now sequenced_on lambda accepts only hash of parameters and not ActiveRecord objects:

sequenced_on ->(r) { { bank_account_id: r.bank_account_id } }

instead of:

sequenced_on ->(r) { where(bank_account_id: r.bank_account_id) }

Releasing

To publish a new version to rubygems, update the version in lib/sequence_on/version.rb, and merge.