Skip to content

Commit

Permalink
derp
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszreszke committed Sep 23, 2024
1 parent d5877b5 commit a4e0334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rails_application/app/controllers/products_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def update
@product.future_price_start_time = params["future_price"]["start_time"]
@product.save!
else
ApplicationRecord::Base.transaction do
ApplicationRecord.transaction do
@product_with_new_price = @product.dup
@product_with_new_price.price = product_params[:price]
@product_with_new_price.latest = true
Expand Down

0 comments on commit a4e0334

Please sign in to comment.