~singpolyma/whiplash-mboa

048736b5e5b6af1f8824b722be435d02ab02ba40 — Stephen Paul Weber 1 year, 7 months ago 575c6a1
Move monkeypath until after the loader has run
2 files changed, 8 insertions(+), 8 deletions(-)

M app/jobs/sync_assigned_orders_job.rb
M config/initializers/shopify_app.rb
M app/jobs/sync_assigned_orders_job.rb => app/jobs/sync_assigned_orders_job.rb +0 -8
@@ 88,11 88,3 @@ class SyncAssignedOrdersJob < ApplicationJob
		}.accept(message: "Sent to Whiplash")
	end
end

module ShopifyAPI
	class AssignedFulfillmentOrder
		def self.class_name
			"fulfillment_order"
		end
	end
end

M config/initializers/shopify_app.rb => config/initializers/shopify_app.rb +8 -0
@@ 51,6 51,14 @@ Rails.application.config.after_initialize do

		ShopifyApp::WebhooksManager.add_registrations

		module ShopifyAPI
			class AssignedFulfillmentOrder
				def self.class_name
					"fulfillment_order"
				end
			end
		end

		if Rake.application.top_level_tasks.empty?
			Shop.all.each do |shop|
				next unless shop.whiplash_api_key