Sha256: be64bf348956e525d7aa939d7b36764338c55a376f0b10f272281e67a15a9633

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

require File.join(File.dirname(__FILE__), 'proxy')

module Backgrounded
  module Concern
    extend ActiveSupport::Concern

    module ClassMethods
      # @see Backgrounded::Concern#backgrounded
      def backgrounded(options={})
        Backgrounded.handler.options = options
        Backgrounded::Proxy.new self
      end
    end

    # @param options (optional) options to pass into the backgrounded handler
    def backgrounded(options={})
      Backgrounded.handler.options = options
      Backgrounded::Proxy.new self
    end
  end
end
Object.send(:include, Backgrounded::Concern)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
backgrounded-2.0.0 lib/backgrounded/concern.rb
backgrounded-2.0.0.rc2 lib/backgrounded/concern.rb
backgrounded-2.0.0.rc1 lib/backgrounded/concern.rb