app/controllers/thredded/posts_controller.rb in thredded-0.13.5 vs app/controllers/thredded/posts_controller.rb in thredded-0.13.6
- old
+ new
@@ -38,10 +38,10 @@
render
end
def update
authorize post, :update?
- post.update_attributes(new_post_params)
+ post.update(new_post_params)
redirect_to post_path(post, user: thredded_current_user)
end
def destroy