Spike events system
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user