mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Implemented strong_parameters for PostAction/PostActionsController.
PostActionsController now uses strong_parameters' #require to require certain parameters. ActionController::ParameterMissing is now thrown when a reqired parameter is missing, rather than Discourse::InvalidParameters.
This commit is contained in:
@@ -5,6 +5,7 @@ require_dependency 'trashable'
|
||||
class PostAction < ActiveRecord::Base
|
||||
class AlreadyActed < StandardError; end
|
||||
|
||||
include ActiveModel::ForbiddenAttributesProtection
|
||||
include RateLimiter::OnCreateRecord
|
||||
include Trashable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user