foreign_office 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreign_office/foreign_office_helper.rb +5 -6
- data/lib/foreign_office/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e2b52052bca73113da226bf02596a9b4015937f
|
4
|
+
data.tar.gz: e074abc062d6143a158bb4a2e924cc624da75880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d8737c1e7b9799b0abc8a57a1e4eb83195f9bba8746c3dfd0db7e4202f05e766c3eea7f6f31ff1a132764d575f380c4b0313be6d91fb3b971d23b495022b268
|
7
|
+
data.tar.gz: 8c701305f244b8d4d3901d4c96138c74dd485a22f83b3025a14903be62f6b551926dd0adabef401468e38fbf943e41f6e5b99266d8a45f519a5249052595dad8
|
@@ -11,12 +11,11 @@ module ForeignOffice
|
|
11
11
|
data_attrs += " data-sub-type=#{subtype}" if subtype
|
12
12
|
data_attrs
|
13
13
|
end
|
14
|
-
end
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
def listener_hash(resource, key, reveal_hide: false)
|
16
|
+
hash = {listener: true, channel: resource.class.name + resource.id.to_s, key: key}
|
17
|
+
hash[:reveal_hide] = true if reveal_hide
|
18
|
+
hash
|
19
|
+
end
|
20
20
|
end
|
21
|
-
|
22
21
|
end
|