diff --git a/app/models/application_record.rb b/app/models/application_record.rb index e6e4c022e9d..485ab076de2 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -24,7 +24,8 @@ def self.display_name(number = 1) n_(model_name.singular.titleize, model_name.plural.titleize, number) end - def self.human_attribute_name(attribute, *args) + def self.human_attribute_name(attribute, options = {}) + return super if options.delete(:ui) == true "#{name}: #{super}" end end