Use expect
for admin/
controllers (#33686)
This commit is contained in:
parent
59384282ed
commit
65d9171c7d
57 changed files with 551 additions and 41 deletions
|
@ -39,7 +39,8 @@ module Admin
|
|||
helper_method :batched_ordered_status_edits
|
||||
|
||||
def admin_status_batch_action_params
|
||||
params.require(:admin_status_batch_action).permit(status_ids: [])
|
||||
params
|
||||
.expect(admin_status_batch_action: [status_ids: []])
|
||||
end
|
||||
|
||||
def after_create_redirect_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue