sutty/app/views/i18n/_recursive_array.haml

8 lines
258 B
Text
Raw Normal View History

2018-02-09 21:28:27 +00:00
- data.each do |value|
- if value.is_a? String
= render 'i18n/text_field', value: value, key: "#{key}[]"
- elsif value.is_a? Hash
= render 'i18n/recursive', data: value
- elsif value.is_a? Array
= render 'i18n/recursive_array', data: value