Sha256: 450f17462a658bd0b0d22ea8d31d8535c697537a11b6227d0286a44e4b469afe

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

require 'governor_background/rails'
require 'governor_background/handler'
require 'governor_background/job_manager'
require 'governor_background/delayed/job'
require 'governor_background/delayed/performer'
require 'governor_background/resque/job'
require 'governor_background/resque/performer'
require 'governor_background/controllers/methods'

background = Governor::Plugin.new('background')

background.register_model_callback do |base|
  module InstanceMethods
    private
    def run_in_background(method, *arguments)
      GovernorBackground::Handler.run_in_background self, method, arguments
    end
  end
  base.send :include, InstanceMethods
end

Governor::PluginManager.register background

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
governor_background-0.2.1 lib/governor_background.rb