app/controllers/phcpress/blog/posts_controller.rb in phcpress-2.9.1 vs app/controllers/phcpress/blog/posts_controller.rb in phcpress-2.9.5
- old
+ new
@@ -62,10 +62,10 @@
@news_post = News::Post.find(params[:id])
end
# Whitelist on what can be posted
def news_post_params
- params.require(:news_post).permit(:newspsttitle, :newspsttext, :newspstexcerpts, :pststatus, :pstimage)
+ params.require(:news_post).permit(:newspsttitle, :newspsttext, :newspstexcerpts, :pststatus, :pstimage, :user_id)
end
# Current User
def current_user
return unless session[:user_id]