Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

(Mongoid) recursively_embeds_many leads to generate a infinite-depth form. #1244

Closed
rewritten opened this Issue · 1 comment

2 participants

@rewritten

A model marked with recursively_embeds_many triggers an error, probably because it tries to generate all (infinite) depths of children forms. This example model is directly triggering the issue. It happens also if the model is embedded itself in another one.

class Category
  include Mongoid::Document
  recursively_embeds_many
  accepts_nested_attributes_for :child_categories
  field :name
end
@mshibuya
Collaborator

Fixed by #1565.

@mshibuya mshibuya closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.