diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/refinery/blog/admin/posts_controller.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/controllers/refinery/blog/admin/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb index 61ac433..aeb3c43 100644 --- a/app/controllers/refinery/blog/admin/posts_controller.rb +++ b/app/controllers/refinery/blog/admin/posts_controller.rb @@ -85,9 +85,15 @@ module Refinery private def post_params - params.require(:post).permit(:title, :body, :custom_teaser, :tag_list, + params.require(:post).permit(permitted_post_params) + end + + def permitted_post_params + [ + :title, :body, :custom_teaser, :tag_list, :draft, :published_at, :custom_url, :user_id, :browser_title, - :meta_description, :source_url, :source_url_title, :category_ids => []) + :meta_description, :source_url, :source_url_title, :category_ids => [] + ] end protected |