Skip to content

Commit 7e739d5

Browse files
committed
Linting
1 parent fa1233c commit 7e739d5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/controllers/admin/editors_controller.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ def update
2424
private
2525

2626
def editor_update_params
27-
params.require(:editor).permit(
28-
:name,
29-
:form_uids,
30-
:copy_token
27+
params.expect(
28+
editor: %i[
29+
name
30+
form_uids
31+
copy_token
32+
]
3133
).tap do |whitelisted|
3234
whitelisted[:form_uids] = (whitelisted[:form_uids] || '').split(',').map(&:strip)
3335
end

0 commit comments

Comments
 (0)