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: eccf5b9ceb2917549fa81592dc4cb2a905b0ac4af8cd4a58a770b0b505905f0f
4
- data.tar.gz: b554c6fcc8f97fee666a6e587351f6b37f8ba6bf0b4eececf63224d1f368f111
3
+ metadata.gz: d222cf5e301a82aad3e0b9ecfd1bb379bcd569acaa49142d1a8da4397c5f5a01
4
+ data.tar.gz: 3258a1ba69cd315e37ef00af032ed439aa80802ea77aa05a2ebaab1572bda6fc
5
5
  SHA512:
6
- metadata.gz: b5093c0eb1fc40b602233db5041fb3cd11b8bc7aef584c8c50f7246f92550cbe002c58d87d4906cc508187e3a77273791435fbd74b3f7d41dcfa014304b89a21
7
- data.tar.gz: b0b9db9047dd007e45341866ac2fc54eb91ccff09df57bf86420b587369be7173f5051a82ca9e83c82d20e7dff32e98df60ac6c87591df9c5c83eeec811a62e3
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?(field)
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
@@ -1,3 +1,3 @@
1
1
  module ViewPartialFormBuilder
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.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-14 00:00:00.000000000 Z
11
+ date: 2020-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview