Skip to content

Commit

Permalink
permit published_at param for blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 7, 2020
1 parent 857e348 commit ee02ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/blog/posts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ def destroy
private

def post_params
params.require(:blog_post).permit(:title, :content, :summary, :image, :active)
params.require(:blog_post).permit(:title, :content, :summary, :image, :published_at, :active)
end
end

0 comments on commit ee02ebf

Please sign in to comment.