Class: CreateUpdateDestroyAsync::Jobs::Create

Inherits:
Base
  • Object
show all
Defined in:
lib/create_update_destroy_async/jobs/create.rb

Instance Method Summary collapse

Instance Method Details

#perform(klass, attributes = {}) ⇒ Object



6
7
8
9
# File 'lib/create_update_destroy_async/jobs/create.rb', line 6

def perform(klass, attributes = {})
  model = klass.constantize
  model.create(attributes)
end