Class: ActiveRecordToSimpledb::JobQueue::Create

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_to_simpledb.rb

Class Method Summary collapse

Class Method Details

.perform(klass, domain_name, id) ⇒ Object



129
130
131
132
133
134
# File 'lib/active_record_to_simpledb.rb', line 129

def self.perform(klass, domain_name, id)

  record = klass.camelize.constantize.find(id)
  ActiveRecordToSimpledb::Client.create( domain_name , record.attributes)

end