hotwire-livereload 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hotwire/livereload/engine.rb +6 -4
- data/lib/hotwire/livereload/version.rb +1 -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: 5bcabf2d518f67b06afa47b3b462f6d190b35ee3cfe2690148b599a0c28ba94e
|
4
|
+
data.tar.gz: 87d3401bddb1a879fb40b73aaef596ff0f17ba019e421411e9a0a3ce4b6562a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a517e60ba65450c6346e6c574ff047f12a8dd09c1b8ebaed16cb393ddaba254490869c829f022c7cc929b6d00c4c32bf0f86c3d2b0e986ac608fcad471107995
|
7
|
+
data.tar.gz: 544f51ca80f96bd73d30ee582acaecf1e734e44d4132d5a1a415bb11b1f87dbc969e0885663c961554e3635a2c72080e03a6952b6abdf4f6f4e435e075f472e5
|
@@ -35,10 +35,12 @@ module Hotwire
|
|
35
35
|
config_path = Hotwire::Livereload::Engine.root.join("config", "livereload_cable.yml")
|
36
36
|
cable = Hotwire::Livereload::Engine.cable
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
if Rails.env.development?
|
39
|
+
cable.cable = app.config_for(config_path).with_indifferent_access
|
40
|
+
cable.mount_path = "/cable"
|
41
|
+
cable.connection_class = -> { Hotwire::Livereload::Connection }
|
42
|
+
cable.logger ||= Rails.logger
|
43
|
+
end
|
42
44
|
end
|
43
45
|
|
44
46
|
config.after_initialize do |app|
|