module ActiveModel::Translation

def lookup_ancestors

ActiveModel::Translation#human_attribute_name.
ActiveModel::Errors#full_messages and
method, which is used in ActiveModel::Name#human,
When localizing a string, it goes through the lookup returned by this
def lookup_ancestors
  ancestors.select { |x| x.respond_to?(:model_name) }
end