Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Jan 22, 2025
1 parent fa1233c commit 7e739d5
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 7e739d5

Please sign in to comment.