app/controllers/blog_controller.rb in spud_blog-1.0.0.rc1.1 vs app/controllers/blog_controller.rb in spud_blog-1.0.0

- old
+ new

@@ -130,9 +130,13 @@ redirect_to blog_path and return false end end def comment_params - params.require(:spud_post_comment).permit(:author,:content) + allowed_params = [:author,:content] + if Spud::Blog.config.custom_comment_fields + allowed_params.concat(Spud::Blog.config.custom_comment_fields) + end + params.require(:spud_post_comment).permit *allowed_params end end