Class: CreateUpdateDestroyAsync::Jobs::Save
- Defined in:
- lib/create_update_destroy_async/jobs/save.rb
Instance Method Summary collapse
Instance Method Details
#perform(record, attributes = {}) ⇒ Object
6 7 8 9 |
# File 'lib/create_update_destroy_async/jobs/save.rb', line 6 def perform(record, attributes = {}) record.assign_attributes(attributes) record.save end |