view_partial_form_builder 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d222cf5e301a82aad3e0b9ecfd1bb379bcd569acaa49142d1a8da4397c5f5a01
|
4
|
+
data.tar.gz: 3258a1ba69cd315e37ef00af032ed439aa80802ea77aa05a2ebaab1572bda6fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6708f5a86457c43e92a340d492251a3c05158afdc373f4dcf223b636b7ef094163c6d400f1f5845b5afba542edeb142e98bb367bd1d95043987edcc368a97744
|
7
|
+
data.tar.gz: 41e75ce219a6c305a67c29656fc2e8b0561cda2f5e8e4196d2437de39f646e9e3388664e7c421471b4b374ae2e4b735716647f1a8ec0cb1d50cfd13cc8b2afad
|
@@ -290,8 +290,9 @@ module ViewPartialFormBuilder
|
|
290
290
|
|
291
291
|
def about_to_recurse_infinitely?(field, partial_override)
|
292
292
|
@template.instance_eval do
|
293
|
+
partial_name = "/#{field}"
|
293
294
|
current_partial = @virtual_path.gsub("/_", "/")
|
294
|
-
currently_rendering_field = current_partial.end_with?(
|
295
|
+
currently_rendering_field = current_partial.end_with?(partial_name)
|
295
296
|
|
296
297
|
return true if currently_rendering_field && partial_override.nil?
|
297
298
|
return true if currently_rendering_field && partial_override == current_partial
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: view_partial_form_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Doyle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|