Sha256: afb0eb1a4a2a414a70b7e8223115f4d56e22f99473566e820bd259d3a4a2b1be

Contents?: true

Size: 515 Bytes

Versions: 18

Compression:

Stored size: 515 Bytes

Contents

require 'resque'

module Rollbar
  module Delay
    class Resque
      def self.call(payload)
        new.call(payload)
      end

      def call(payload)
        ::Resque.enqueue(Job, payload)
      end

      class Job
        class << self
          attr_accessor :queue
        end

        self.queue = :default

        def self.perform(payload)
          new.perform(payload)
        end

        def perform(payload)
          Rollbar.process_payload_safely(payload)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rollbar-2.1.2 lib/rollbar/delay/resque.rb
rollbar-2.1.1 lib/rollbar/delay/resque.rb
rollbar-2.1.0 lib/rollbar/delay/resque.rb
rollbar-2.0.2 lib/rollbar/delay/resque.rb
rollbar-2.0.1 lib/rollbar/delay/resque.rb
rollbar-2.0.0 lib/rollbar/delay/resque.rb
rollbar-1.5.3 lib/rollbar/delay/resque.rb
rollbar-1.5.2 lib/rollbar/delay/resque.rb
rollbar-1.5.1 lib/rollbar/delay/resque.rb
rollbar-1.5.0 lib/rollbar/delay/resque.rb
rollbar-1.4.5 lib/rollbar/delay/resque.rb
rollbar-1.4.4 lib/rollbar/delay/resque.rb
rollbar-1.4.3 lib/rollbar/delay/resque.rb
rollbar-1.4.2 lib/rollbar/delay/resque.rb
rollbar-1.4.1 lib/rollbar/delay/resque.rb
rollbar-1.4.0 lib/rollbar/delay/resque.rb
rollbar-1.3.2 lib/rollbar/delay/resque.rb
rollbar-1.3.1 lib/rollbar/delay/resque.rb