action_cable_notifications 0.1.7 → 0.1.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a5b294019da537a20da5de08471a9c7bff2de04
|
4
|
+
data.tar.gz: 386bb05710c8c1c8857c65a8576895e0bc712359
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 131a9ecbf7b35f060de693e6cb0f71fee8f3a88c5a3f2985d061c6749f363a3c64c03a8e8ed37d45ff32272d85eef42077c0c8b4dcb7943f86adea99eb2efe2c
|
7
|
+
data.tar.gz: 5166a418c3c85c6b0b3fff2dbdf2b4f50d227c0ba8b2b94b4cfa9bd88f733c1a32da51523090b57951161a7097c653b4316cfd29226297143e9b3d56e9a3f78b
|
@@ -21,7 +21,7 @@ module ActionCableNotifications
|
|
21
21
|
# @param [sym] broadcasting Topic name to broadcast in
|
22
22
|
# @param [hash] options Hash containing notification options
|
23
23
|
#
|
24
|
-
def broadcast_notifications_from ( broadcasting, options =
|
24
|
+
def broadcast_notifications_from ( broadcasting, options = {} )
|
25
25
|
# Default options
|
26
26
|
options = {
|
27
27
|
actions: [:create, :update, :destroy],
|
@@ -39,7 +39,7 @@ module ActionCableNotifications
|
|
39
39
|
#
|
40
40
|
# @return [ActiveRecordRelation] Results fetched from the database
|
41
41
|
#
|
42
|
-
def scoped_collection ( scope
|
42
|
+
def scoped_collection ( scope = :all )
|
43
43
|
Array(scope).inject(self) {|o, a| o.try(*a)}
|
44
44
|
end
|
45
45
|
|