Skip to content

Commit

Permalink
Merge branch 'main' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
puppe1990 authored Sep 2, 2024
2 parents 3429cb2 + 869205e commit e9b2ad2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/productions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# app/controllers/productions_controller.rb

class ProductionsController < ApplicationController
before_action :set_production, only: [:show, :edit, :update, :destroy, :verify]
before_action :set_tailors, only: [:new, :edit, :create, :update]
Expand Down Expand Up @@ -26,7 +28,6 @@ def create
@tailors = Tailor.all
flash.now[:alert] = t('.creation_failed')
logger.error("Failed to create production: #{@production.errors.full_messages}")
render :new
end
end

Expand All @@ -40,6 +41,7 @@ def update
if @production.update!(production_params)
redirect_to @production, notice: t('.production_updated')
else
@tailors = Tailor.all
render :edit
end
end
Expand Down

0 comments on commit e9b2ad2

Please sign in to comment.