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: 8d36b1d264e07258e473fd2cf61f416b13c1f90f824df789caf1fa59a2256a10
4
- data.tar.gz: 1555f66225ca9351fb662200e2e1aae8316db72d3860efcb84e8f462df61d7df
3
+ metadata.gz: cb20c15ff661ae29da36dd49e741a06f2fcebfe66d6d396ab8d13e56bc19cfaf
4
+ data.tar.gz: 0eb50b593ab125d7ea382429cd8c5239bff1bdcbecf374684696afe07decc2b4
5
5
  SHA512:
6
- metadata.gz: d360689783298699ad923937becd16bd2196d6c11ed003ada2ecba3d2da057d5738eed9f09afede7f12db4cce7bc9c8c0fa4f538b76d6aff52086754c1d84326
7
- data.tar.gz: aa70cf87907c29a39e526f688c5f92c0fe4d1e1c9972fd8f246ac713085e904443f0962f3fcc77a47cf581e353bd135c175c268426ca8fc7c1ddf592d2a685cb
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
- puts data["message"]
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_backend_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni