summaryrefslogtreecommitdiff
path: root/logic/providers/maritaca/tokens.rb
diff options
context:
space:
mode:
authoricebaker <113217272+icebaker@users.noreply.github.com>2024-01-06 22:16:01 -0300
committerGitHub <noreply@github.com>2024-01-06 22:16:01 -0300
commit28472564b37c7dd597363071b180064473a06933 (patch)
tree8d2709d35089ec8afb60bd20c6855de4623e3d1b /logic/providers/maritaca/tokens.rb
parentbfe0e76e3683a71bb8ce5bfdaae99b0252e7be05 (diff)
parentc4807b26f0d530ef99ff87b6c5c45a4953ba958a (diff)
Merge pull request #14 from icebaker/ib-new-providers
Adding new providers
Diffstat (limited to 'logic/providers/maritaca/tokens.rb')
-rw-r--r--logic/providers/maritaca/tokens.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/logic/providers/maritaca/tokens.rb b/logic/providers/maritaca/tokens.rb
new file mode 100644
index 0000000..1ae2219
--- /dev/null
+++ b/logic/providers/maritaca/tokens.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+module NanoBot
+ module Logic
+ module Maritaca
+ module Tokens
+ def self.apply_policies!(_cartridge, payload)
+ payload[:messages] = payload[:messages].map { |message| message.except(:_meta) }
+ payload
+ end
+ end
+ end
+ end
+end