Module: Sidekiq::SerializedCurrentAttributes
- Defined in:
- lib/sidekiq/serialized_current_attributes.rb,
lib/sidekiq/serialized_current_attributes/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.1.3"
Class Method Summary collapse
Class Method Details
.persist(klass_or_array, config = Sidekiq.default_configuration) ⇒ Object
78 79 80 81 82 83 |
# File 'lib/sidekiq/serialized_current_attributes.rb', line 78 def persist(klass_or_array, config = Sidekiq.default_configuration) cattrs = build_cattrs_hash(klass_or_array) config.client_middleware.add Save, cattrs config.server_middleware.prepend Load, cattrs end |