app/helpers/account/forms_helper.rb in bullet_train-1.2.10 vs app/helpers/account/forms_helper.rb in bullet_train-1.2.11
- old
+ new
@@ -38,10 +38,12 @@
end
def options_for(form, method)
# e.g. "scaffolding/completely_concrete/tangible_things.fields.text_area_value.options"
path = [model_key(form), (current_fields_namespace || :fields), method, :options]
- t(path.compact.join("."))
+ options = t(path.compact.join("."))
+ return options unless options.is_a?(Hash)
+ options.stringify_keys
end
def legacy_label_for(form, method)
# e.g. 'scaffolding/things.labels.name'
key = "#{model_key(form)}.labels.#{method}"