Use expect for nested params in more controllers (#33675)
This commit is contained in:
@@ -43,7 +43,7 @@ class InvitesController < ApplicationController
|
||||
end
|
||||
|
||||
def resource_params
|
||||
params.require(:invite).permit(:max_uses, :expires_in, :autofollow, :comment)
|
||||
params.expect(invite: [:max_uses, :expires_in, :autofollow, :comment])
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
|
||||
Reference in New Issue
Block a user