diff --git a/lib/simple_form/components/labels.rb b/lib/simple_form/components/labels.rb index 9623f1e1..31b5d10c 100644 --- a/lib/simple_form/components/labels.rb +++ b/lib/simple_form/components/labels.rb @@ -74,7 +74,7 @@ def label_translation #:nodoc: if SimpleForm.translate_labels && (translated_label = translate_from_namespace(:labels)) translated_label elsif object.class.respond_to?(:human_attribute_name) - object.class.human_attribute_name(reflection_or_attribute_name.to_s) + object.class.human_attribute_name(reflection_or_attribute_name.to_s, { base: object }) else attribute_name.to_s.humanize end