Module: EMI::DelayedJob::ClassMethods
- Defined in:
- lib/delayed/backend/data_mapper.rb
Instance Method Summary collapse
Instance Method Details
#load_for_delayed_job(id) ⇒ Object
8 9 10 11 12 |
# File 'lib/delayed/backend/data_mapper.rb', line 8 def load_for_delayed_job(id) return self unless id first(:id => id) || raise(DataMapper::ObjectNotFoundError, "Unable to find #{self.name} with id #{id}") end |