Sha256: d71e1a2de214edcf40f69ccd14e0ee1210ebe4be8bd0ff3da23e89a12f25dee2

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

require 'yaml'
module ChangeManager
	class BeginChange
		def self.queue
			:change
		end

		def self.perform(change_id)
			config ||= YAML.load_file(File.join(Rails.root, 'config/change_manager_config.yml'))
			config['manager_class'].constantize.process_change(change_id)
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
change_manager-0.4.1 app/jobs/change_manager/begin_change.rb
change_manager-0.4.0 app/jobs/change_manager/begin_change.rb