thecore_backend_commons 3.1.2 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb20c15ff661ae29da36dd49e741a06f2fcebfe66d6d396ab8d13e56bc19cfaf
|
4
|
+
data.tar.gz: 0eb50b593ab125d7ea382429cd8c5239bff1bdcbecf374684696afe07decc2b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11f14abba150e961335fc6ba119606c2e4fed084294fbc0896f31069441eced1310dfa1c243e1638375b7afe8c38e75ddf1e0b5036df2378f51ab5c5e7e9a176
|
7
|
+
data.tar.gz: 546044d1eef76e68c3542cc4fc23692259e527e5e3dc544912f1d95e12bee58bbcca58eea668fe22491ce74da6e4d8e29bfbe89afda71c053ee0b764a382d758
|
@@ -7,10 +7,7 @@ class ActivityLogChannel < ApplicationCable::Channel
|
|
7
7
|
# Any cleanup needed when channel is unsubscribed
|
8
8
|
end
|
9
9
|
|
10
|
-
# https://cableready.stimulusreflex.com/troubleshooting/#verify-actioncable
|
11
|
-
|
12
10
|
def receive(data)
|
13
|
-
|
14
|
-
ActionCable.server.broadcast("messages", "ActionCable is connected")
|
11
|
+
ActionCable.server.broadcast("messages", {message: "ActionCable is connected and received: #{data["message"]}", topic: data["topic"].presence || "general"}) if data["namespace"] == "subscriptions"
|
15
12
|
end
|
16
13
|
end
|
@@ -1,2 +1,3 @@
|
|
1
1
|
Rails.application.config.active_storage.configure :Disk, root: Rails.root.join("storage")
|
2
2
|
Rails.application.config.action_mailer.delivery_method = :smtp
|
3
|
+
Rails.application.config.action_cable.allowed_request_origins = [ ENV["FRONTEND_URL"].presence || /http:\/\/*/, ENV["BACKEND_URL"].presence || /http:\/\/*/ ].uniq
|