refactor(repetition): use row_id instead of row
This commit is contained in:
parent
8adada9857
commit
af33d5d65c
17 changed files with 47 additions and 36 deletions
|
@ -8,7 +8,7 @@ class Champs::RepetitionController < ApplicationController
|
|||
|
||||
def remove
|
||||
champ = policy_scope(Champ).includes(:champs).find(params[:champ_id])
|
||||
champ.champs.where(id: params[:champ_ids]).destroy_all
|
||||
champ.champs.where(row_id: params[:row_id]).destroy_all
|
||||
@row_id = params[:row_id]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue