Skip to content

Commit

Permalink
mhm
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszreszke committed Sep 23, 2024
1 parent 5e7c9c3 commit d5877b5
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
ActiveRecord::Base.transaction do
ApplicationRecord::Base.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 d5877b5

Please sign in to comment.