Sha256: 5af37bdd3aceabcf9cef554e7716a901b2be35ed602c8d9e3a51de2d99ca4d02
Contents?: true
Size: 353 Bytes
Versions: 5
Compression:
Stored size: 353 Bytes
Contents
require "active_support/concern" module Paperbin::VersionMixin extend ActiveSupport::Concern included do after_create :perform_worker end def perform_worker Paperbin::WriteWorker.perform_async(item_id, item_type) rescue Exception => e Airbrake.notify_or_ignore(e) if Paperbin::Handler.new.options[:airbrake_enabled] end end
Version data entries
5 entries across 5 versions & 1 rubygems