Sha256: 99de8f9916fbc83dbc877ef28749e4bc86cbc85f8704764c46cfc6bb681c656b

Contents?: true

Size: 282 Bytes

Versions: 1

Compression:

Stored size: 282 Bytes

Contents

module Cas
  module Images
    class DeleteJob
      include ::Sidekiq::Worker

      def perform(attacher_class, data)
        attacher_class = Object.const_get(attacher_class)

        attacher = attacher_class.from_data(data)
        attacher.destroy
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 app/jobs/cas/images/delete_job.rb