reactive-record 0.7.0 → 0.7.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 843b69d8493a801694376fe0fe8d2757bf277059
|
|
4
|
+
data.tar.gz: 1db4525dedaefe2c5a8a7a1459ad98f9416743d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc2ef1e11a2687ae53571e8c72c96c89c7164213d6d8477a4fb1413ebde429c83c95ac31d8df71f8bf0668e53029fde1e5209ac28b7a27e6f7f36795942e7f4f
|
|
7
|
+
data.tar.gz: 4c66f3c3cc35bdee46bce7f2bb7b1b89829f5ae548546cb642a1759d8d5156e01b73f6fb174c7897e3ce877770f9d6575e63b47f40ae29f7676a64330961d45a
|
|
@@ -42,7 +42,10 @@ module ReactiveRecord
|
|
|
42
42
|
prerender_footer do
|
|
43
43
|
json = @server_data_cache.as_json.to_json # can this just be to_json?
|
|
44
44
|
@server_data_cache.clear_requests
|
|
45
|
-
path = ::Rails.application.routes.routes.detect
|
|
45
|
+
path = ::Rails.application.routes.routes.detect do |route|
|
|
46
|
+
# not sure why the second check is needed. It happens in the test app
|
|
47
|
+
route.app == ReactiveRecord::Engine or (route.app.respond_to?(:app) and route.app.app == ReactiveRecord::Engine)
|
|
48
|
+
end.path.spec
|
|
46
49
|
"<script type='text/javascript'>\n"+
|
|
47
50
|
"window.ReactiveRecordEnginePath = '#{path}';\n"+
|
|
48
51
|
"if (typeof window.ReactiveRecordInitialData === 'undefined') { window.ReactiveRecordInitialData = [] }\n" +
|