Skip to content

Commit

Permalink
Replace params.require -> params.expect
Browse files Browse the repository at this point in the history
  • Loading branch information
taketo1113 committed Dec 30, 2024
1 parent 0512ad2 commit 95f83a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def set_message

# Never trust parameters from the scary internet, only allow the white list through.
def message_params
params.require(:message).permit(:body)
params.expect(message: %i[ body ])
end
end

0 comments on commit 95f83a8

Please sign in to comment.