Spike events system

This commit is contained in:
Jose Farias
2024-10-11 20:14:09 -05:00
parent 9e2ca7ad4b
commit ec7fc75054
46 changed files with 436 additions and 146 deletions
+1 -6
View File
@@ -2,12 +2,7 @@ class CommentsController < ApplicationController
include BubbleScoped, BucketScoped
def create
@bubble.comments.create!(comment_params)
@bubble.comment! params.dig(:comment, :body).presence
redirect_to bucket_bubble_url(@bucket, @bubble)
end
private
def comment_params
params.require(:comment).permit(:body)
end
end