yabeda-actioncable 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/yabeda/action_cable/version.rb +1 -1
- data/lib/yabeda/action_cable.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73052de5460e168f2d16cb7ef8cb9e6602b77d5e89bcc9f50f5ac2a25e98ea3a
|
4
|
+
data.tar.gz: 8765dad213176e0b1e2636f4cc1df7674a520f5fd8d48406f243a201bd3a40eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9fa324d41587878820e8590d94d7b3ae12524969cf6b77d8aa5dbfdf473bab993708065f1a2b1ffdc99143afb5127681067320551419e551db286c245e28938
|
7
|
+
data.tar.gz: 88d69e841c05e7bf376fb34e5fb9cd1f5ad0ca487880d7dd424fb577ed47c9790f3fce4d915d7e7723cde553d8a5e72461afebd719bacf90c99ff88cec591463
|
data/lib/yabeda/action_cable.rb
CHANGED
@@ -185,7 +185,15 @@ module Yabeda
|
|
185
185
|
end
|
186
186
|
|
187
187
|
def include_channel_concern!
|
188
|
-
config.channel_class_name.
|
188
|
+
klass = config.channel_class_name.safe_constantize
|
189
|
+
|
190
|
+
if klass
|
191
|
+
klass.include(ChannelConcern)
|
192
|
+
elsif defined?(Rails)
|
193
|
+
Rails.application.config.after_initialize do
|
194
|
+
config.channel_class_name.constantize.include(ChannelConcern)
|
195
|
+
end
|
196
|
+
end
|
189
197
|
end
|
190
198
|
|
191
199
|
def channel_concern_included?
|