easy_connect 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 654a6e1e269bb504f49b7210387623291db8c164b6dd1a1eff76f865577619e7
4
- data.tar.gz: ecbc1fe761242d120982dbd0237c086b78d8bc4bb78db038bbfacea17954da24
3
+ metadata.gz: 0dbdc568332473e63c75d7d85272a54e1d30903eb85a708581c6f4504c5affcb
4
+ data.tar.gz: 9f9b390ed8016c8c7b42f6a924ee7f097d5bfecb5feee9645a81a2762b36c947
5
5
  SHA512:
6
- metadata.gz: 0eb5312966d53e0d8125b33d152c24a9a1e14c6f162c907ec5cf116a5e2e8eef86f7ac4eb5505d4d799ce8149c6d3536dbd6d557efb3b61022050de175c22cd5
7
- data.tar.gz: 1a5b739bcbc85ec4ed1a015085d414f4a1bcbf6aff73f11952eb54af080a4c0010483d5c6ff4123f58c06cbe51919158eaf812111cc5dccb7f12d9ca6ada159f
6
+ metadata.gz: 47f40eee1f534526988c98b1e15537e7563218bb14ba51eb625fe26c01c27015138f569d3c22e656188b91f8c41d84727cbec797ce73dd41f3a1ee5e910b60e9
7
+ data.tar.gz: 1df85a001668a2c43e943d17c0e4316b96e68d27f92f9be72a47ba5ab3c6b5423ce3a9d3ab3c9ade3609ccf3a3bb94aacd31cb736026858d9b0c21a791e13881
@@ -10,9 +10,17 @@ module EasyConnect
10
10
 
11
11
  helper KeystoneUi::React::MountHelper
12
12
 
13
+ helper_method :connect_routes
14
+
13
15
  rescue_from Refused do |refusal|
14
16
  render json: { error: refusal.message }, status: :unprocessable_entity
15
17
  end
18
+
19
+ private
20
+
21
+ def connect_routes
22
+ @connect_routes ||= ActionDispatch::Routing::RoutesProxy.new(_routes, self, _routes.url_helpers)
23
+ end
16
24
  end
17
25
  end
18
26
  end
@@ -5,4 +5,4 @@
5
5
 
6
6
  <h1><%= @board.title %></h1>
7
7
 
8
- <%= react_ui("easy_connect/board", { base: manage_board_path(@board), token: form_authenticity_token, initial: @board.drawing }) %>
8
+ <%= react_ui("easy_connect/board", { base: connect_routes.manage_board_path(@board), token: form_authenticity_token, initial: @board.drawing }) %>
@@ -1,3 +1,3 @@
1
1
  module EasyConnect
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider