app/controllers/talkie/comments_controller.rb in talkie-0.2.0 vs app/controllers/talkie/comments_controller.rb in talkie-0.3.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Talkie class CommentsController < TalkieController before_action :current_comment, only: [:destroy] def create @@ -26,10 +28,10 @@ end private def comment_params - params.require(:comment).permit(:body, :commentable_id, :commentable_type) + params.require(:comment).permit(:body, :commentable_id, :commentable_type, :mention_tokens) end def reply? params[:parent_comment_id].present? end