这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jaredh
Copy link
Contributor

@jaredh jaredh commented Mar 27, 2018

Limits scope for non-recursive calls.

@jaredh jaredh requested a review from DanielJette March 27, 2018 21:41
_queryBuilder.append(listSeperator#{depth});
listSeperator#{depth} = ",";
#{generate_build_input_code("item#{depth}", item_type, depth: depth + 1)}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get it. Did you just add a scope to the block?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it was being called again in Input.java.erb for the optional fields but had no context to resume the previous depth count. Just added a block so it can safely start at 1 again for new fields.

@jaredh jaredh merged commit 7931ae8 into master Mar 28, 2018
@jaredh jaredh deleted the fix-depth-calc branch March 28, 2018 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants