Use modern params#expect

This commit is contained in:
David Heinemeier Hansson
2025-04-11 17:43:31 +02:00
parent f9bb779b61
commit eec76d0d4f
+1 -1
View File
@@ -33,6 +33,6 @@ class Cards::CommentsController < ApplicationController
end
def comment_params
params.require(:comment).permit(:body)
params.expect(comment: :body)
end
end