Sha256: 7f9552bb1ac802a6102dbe0428d2d4a9895c419599c1f79460ba875757f37cc0

Contents?: true

Size: 265 Bytes

Versions: 6

Compression:

Stored size: 265 Bytes

Contents

require "active_support/concern"

module Ownership
  module JobMethods
    extend ActiveSupport::Concern

    class_methods do
      def owner(*args)
        around_perform do |_, block|
          owner(*args) { block.call }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ownership-0.4.0 lib/ownership/job_methods.rb
ownership-0.3.0 lib/ownership/job_methods.rb
ownership-0.2.0 lib/ownership/job_methods.rb
ownership-0.1.2 lib/ownership/job_methods.rb
ownership-0.1.1 lib/ownership/job_methods.rb
ownership-0.1.0 lib/ownership/job_methods.rb