class Softwear::Library::Enqueue::Worker
Public Instance Methods
perform(model_name, id, method, *args)
click to toggle source
# File lib/softwear/library/enqueue.rb, line 11 def perform(model_name, id, method, *args) record = model_name.constantize.find_by(id: id) if record record.send(method, *args) end end