Merge pull request #979 from iancmyers/strong-parameters

All parameters for #create in PostsController pass through strong_parameters
This commit is contained in:
Robin Ward
2013-06-07 09:17:29 -07:00
5 changed files with 48 additions and 44 deletions

View File

@ -38,8 +38,6 @@ class PostCreator
@user = user
@opts = opts
@spam = false
raise Discourse::InvalidParameters.new(:raw) if @opts[:raw].blank?
end
# True if the post was considered spam