Module: Sequel::Plugins::Synchronize::InstanceMethods
- Defined in:
- lib/sequel/plugins/synchronize.rb
Instance Method Summary collapse
-
#synchronize(*args, **options) ⇒ Object
Just like Sequel::Synchronize#synchronize_with, but name, which is joined from args, is combined with table_name and primary_key.
Instance Method Details
#synchronize(*args, **options) ⇒ Object
Just like Sequel::Synchronize#synchronize_with, but name, which is joined from args, is combined with table_name and primary_key
15 16 17 |
# File 'lib/sequel/plugins/synchronize.rb', line 15 def synchronize(*args, **) self.class.synchronize_with(lock_key_for(args), **) { yield(reload) } end |