Skip to content

Commit

Permalink
Merge pull request #1782 from etalab/fix/lint
Browse files Browse the repository at this point in the history
Linting
  • Loading branch information
skelz0r authored Jan 22, 2025
2 parents fa1233c + aeb6436 commit 79d5b2d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/controllers/admin/editors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ def update
private

def editor_update_params
params.require(:editor).permit(
:name,
:form_uids,
:copy_token
params.expect(
editor: %i[
name
form_uids
copy_token
]
).tap do |whitelisted|
whitelisted[:form_uids] = (whitelisted[:form_uids] || '').split(',').map(&:strip)
end
Expand Down

0 comments on commit 79d5b2d

Please sign in to comment.