Module: SuckerPunch::Persistence::Mongoid
- Extended by:
- SuckerPunch::Persistence
- Defined in:
- lib/sucker_punch/persistence/mongoid/job.rb,
lib/sucker_punch/persistence/mongoid/adapter.rb,
lib/sucker_punch/persistence/mongoid.rb
Defined Under Namespace
Constant Summary
Constants included from SuckerPunch::Persistence
Class Method Summary collapse
Instance Method Summary collapse
Methods included from SuckerPunch::Persistence
Class Method Details
.persistence_adapter ⇒ Object
8 9 10 |
# File 'lib/sucker_punch/persistence/mongoid.rb', line 8 def self.persistence_adapter Adapter.new end |
Instance Method Details
#perform(*args, completed_callback) ⇒ Object
12 13 14 15 16 |
# File 'lib/sucker_punch/persistence/mongoid.rb', line 12 def perform(*args, completed_callback) super(*args).tap do |return_value| completed_callback.call(return_value) end end |