Messageables don't belong to bubble directly

This commit is contained in:
Jose Farias
2024-10-27 11:57:33 -06:00
parent 5ea2004adb
commit f9712ea53f
14 changed files with 31 additions and 35 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ class CommentsController < ApplicationController
include BubbleScoped, BucketScoped
def create
@bubble.comments.create! params.expect(comment: [ :body ])
@bubble.comment params.require(:comment).expect(:body)
redirect_to @bubble
end
end