playbook_ui 2.6.0 → 2.7.0

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: 606e2cf62a77d39cf9b13ddb070bf3b87114ad06c49c48bbd832038f11214124
4
- data.tar.gz: b554ee1ac1bdffc97fe1ccab3fd79ce0f5e691cab9e2b4b20937224290e75e70
3
+ metadata.gz: 521c6df18decd24bc2f409736820889c02f0d60a2908149fc4e26d85953add71
4
+ data.tar.gz: 26be0b0fe06654755b3b98ab0b61f67e45d7ad5f677effa2be19e5f1a1403cd8
5
5
  SHA512:
6
- metadata.gz: 027a1f10aeb66c5ff46932101edef00db09c166ed5faea53d7c8b9c29f614cadc930d85e508fcf84ac1fcb2c2dd3c063a78d56f00b0c077a9b316f814fd82095
7
- data.tar.gz: a5706e0796de6bfe79c71eb9b5e3d8aa4547ca2a90db1ab7eae1716cc908069e794d1f47b3f0065742f178303df87b132d673e2232de758e8fc8e3cfd797e3d6
6
+ metadata.gz: 3641200fb29191fa6c714f8f2eed13db7711e2cf0b75772f8c213d2273137a3814b18f110420524d0770e2c5aa8a88ddc7a7c214e65dcb9f70d5019f6588ccbc
7
+ data.tar.gz: 2d9decadd1556a2e887baf8f5300ded9344f03be67ed096b535b68bb6c9d3364ec19c1fb1ee63481314d2698325cdcc490eb75a050e34da6c1c51b1c63d6cd01
@@ -12,13 +12,19 @@ module Playbook
12
12
  render_react(kit, props, options)
13
13
  end
14
14
 
15
-
16
15
  private
17
16
 
18
17
  def render_rails(kit, props, &block)
19
18
  props = defined?(props) && !props.nil? ? props : {}
20
19
  kit_class_obj = get_class_name(kit)
21
- return render(partial: kit_class_obj.new(**props, &block), as: :object)
20
+ original_value = ActionView::Base.prefix_partial_path_with_controller_namespace
21
+
22
+ render(partial: kit_class_obj.new(**props, &block), as: :object)
23
+ rescue ActionView::MissingTemplate
24
+ ActionView::Base.prefix_partial_path_with_controller_namespace = false
25
+ render(partial: kit_class_obj.new(**props, &block), as: :object)
26
+ ensure
27
+ ActionView::Base.prefix_partial_path_with_controller_namespace = original_value
22
28
  end
23
29
 
24
30
  def render_react(kit, props, options)
@@ -1,3 +1,3 @@
1
1
  module Playbook
2
- VERSION = "2.6.0".freeze
2
+ VERSION = "2.7.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-31 00:00:00.000000000 Z
12
+ date: 2019-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails