When discovering translations, Rails passes the base object to human_attribute_name. This is helpful because human_attribute_name is a class method and does not have access to instance methods. If someone wants to customize the behavior of said method based on properties of the instance, this is not possible without this argument. This merge request makes a tiny change to pass this base object.
When discovering translations, Rails passes the
base
object tohuman_attribute_name
. This is helpful becausehuman_attribute_name
is a class method and does not have access to instance methods. If someone wants to customize the behavior of said method based on properties of the instance, this is not possible without this argument. This merge request makes a tiny change to pass this base object.