Closed rossta closed 5 years ago
When using a nested scope for the response field method, such as:
response_field :value, "A value", scope: [:item, :item_id]
the HTML generated in the Response Fields, Name column reads as:
["item", "item_id"][value]
I believe the expected behavior is to display:
item[item_id][value]
Using the format_scope helper fixes the issue.
format_scope
Also adds a few spec for the helper method.
Thanks, I'd never nested them like that. =)
Thanks for the fast response!
When using a nested scope for the response field method, such as:
the HTML generated in the Response Fields, Name column reads as:
I believe the expected behavior is to display:
Using the
format_scope
helper fixes the issue.Also adds a few spec for the helper method.