mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add 'Post.permitted_create_params' to allow plugins to add new params when creating a post
This commit is contained in:
@@ -17,6 +17,9 @@ class Post < ActiveRecord::Base
|
||||
include HasCustomFields
|
||||
include LimitedEdit
|
||||
|
||||
cattr_accessor :permitted_create_params
|
||||
self.permitted_create_params = Set.new
|
||||
|
||||
# increase this number to force a system wide post rebake
|
||||
BAKED_VERSION = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user