Skip to content

Commit

Permalink
Run standardrb --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carrollsa committed Aug 11, 2023
1 parent 19216e4 commit e83ed8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/banners_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create
deactivate_alternate_active_banner
@banner.save!
end

redirect_to banners_path
rescue
render :new
Expand All @@ -40,7 +40,7 @@ def update
authorize :application, :admin_or_supervisor?

@banner = current_organization.banners.find(params[:id])

Banner.transaction do
deactivate_alternate_active_banner
@banner.update!(banner_params)
Expand Down

0 comments on commit e83ed8c

Please sign in to comment.