class Ransack::Helpers::FormBuilder

def get_attribute_element(action, base)

def get_attribute_element(action, base)
  begin
    [
      Translate.association(base, :context => object.context),
      collection_for_base(action, base)
    ]
  rescue UntraversableAssociationError
    nil
  end
end