Skip to content

Commit

Permalink
Merge branch 'add_brand_from_config' of https://github.com/gms-electr…
Browse files Browse the repository at this point in the history
…onics/solidus into add_brand_from_config
  • Loading branch information
shahmayur001 committed Dec 2, 2024
2 parents 03aba31 + 74fdb6c commit 2cfdb98
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
1 change: 0 additions & 1 deletion core/app/models/spree/order_shipping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def ship_shipment(shipment, external_number: nil, tracking_number: nil, suppress
# @return The carton created.
def ship(inventory_units:, stock_location:, address:, shipping_method:,
shipped_at: Time.current, external_number: nil, tracking_number: nil, suppress_mailer: false)

carton = nil

Spree::InventoryUnit.transaction do
Expand Down
4 changes: 2 additions & 2 deletions core/lib/spree/testing_support/extension_rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

desc "Generates a dummy app for testing an extension"
namespace :extension do
task :test_app, [:user_class] do |_t, _args|
task :test_app, [:user_class] do |_t, args|
Spree::DummyGeneratorHelper.inject_extension_requirements = true
Rake::Task['common:test_app'].invoke
Rake::Task['common:test_app'].invoke(args[:user_class])
end
end

This file was deleted.

9 changes: 9 additions & 0 deletions legacy_promotions/app/models/spree/promotion_code_batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,14 @@ class CantProcessStartedBatch < StandardError
def finished?
state == "completed"
end

def process
if state == "pending"
update!(state: "processing")
PromotionCodeBatchJob.perform_later(self)
else
raise CantProcessStartedBatch.new("Batch #{id} already started")
end
end
end
end

0 comments on commit 2cfdb98

Please sign in to comment.