Module: Apartment::Delayed::Job::Hooks
- Defined in:
- lib/apartment/delayed_job/hooks.rb
Overview
Before and after hooks for performing Delayed Jobs within a particular apartment database Include these in your delayed jobs models and make sure provide a @database attr that will be serialized by DJ Note also that any models that are being serialized need the Apartment::Delayed::Requirements module mixed in to it
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
Instance Method Summary collapse
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
12 13 14 |
# File 'lib/apartment/delayed_job/hooks.rb', line 12 def database @database end |