Merge branch 'kb_lts' into kb_development

This commit is contained in:
KMY 2023-10-03 20:37:27 +09:00
commit 88d0023a46
7 changed files with 2 additions and 40 deletions

View file

@ -12,28 +12,8 @@ class AntennasController < ApplicationController
@antennas = current_account.antennas.includes(:antenna_domains).includes(:antenna_tags).includes(:antenna_accounts)
end
def new
@antenna = current_account.antennas.build
@antenna.antenna_domains.build
@antenna.antenna_tags.build
@antenna.antenna_accounts.build
end
def edit; end
def create
@antenna = current_account.antennas.build(thin_resource_params)
saved = @antenna.save
saved = @antenna.update(resource_params) if saved
if saved
redirect_to antennas_path
else
render action: :new
end
end
def update
if @antenna.update(resource_params)
redirect_to antennas_path