module Ransack::Translate

def associated_attribute(associated_class)

def associated_attribute(associated_class)
  if associated_class
    translated_attribute(associated_class)
  else
    translated_ancestor_attributes
  end
end