From 4e37bf87873ccc78779f6a91e8bba31621583b17 Mon Sep 17 00:00:00 2001 From: Max Wagner Date: Thu, 20 Oct 2022 08:54:25 -0600 Subject: [PATCH] Permit raw_command This is to allow implementation of another feature that sends the raw_command, in addition to the parsed command, to the chatops server so the server can parse the command itself. --- lib/chatops/controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chatops/controller.rb b/lib/chatops/controller.rb index 4af2ee1..72aa8fe 100644 --- a/lib/chatops/controller.rb +++ b/lib/chatops/controller.rb @@ -57,7 +57,7 @@ def setup_params! @jsonrpc_params = params.delete(:params) if params.has_key? :params - self.params = params.permit(:action, :chatop, :controller, :id, :mention_slug, :message_id, :method, :room_id, :user) + self.params = params.permit(:action, :chatop, :controller, :id, :mention_slug, :message_id, :method, :room_id, :user, :raw_command) end def jsonrpc_params