reactive-record 0.7.0 → 0.7.1

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: c14856b73501aab70804ad8351301b87b948fd75
4
- data.tar.gz: b0aef64c154ca72e6af956a1966e0e77235bafec
3
+ metadata.gz: 843b69d8493a801694376fe0fe8d2757bf277059
4
+ data.tar.gz: 1db4525dedaefe2c5a8a7a1459ad98f9416743d6
5
5
  SHA512:
6
- metadata.gz: bcc0cdea12ce7c93e27b6179ed6c2842207cf7e046bef8da8eb46643a2adf6964fad1e6d4d0f3c75853bf661de19142f28c987352b4f16abe03fbacdab8464a2
7
- data.tar.gz: f861152c0a4ca7fda801ccf5ee5b8603a7c50a40c8d19506d9c90c71d68c732b99e092da468aa951577341b9f2056c0a89c85d102fdfd192824b814ec92fc6ad
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 { |route| route.app.app == ReactiveRecord::Engine }.path.spec
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" +
@@ -1,3 +1,3 @@
1
1
  module ReactiveRecord
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactive-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch VanDuyn