def resource_title(resource)
      title = resource.try(:title) || resource.try(:name) || resource.try(:subject) || "#{resource.model_name.human} ##{resource.id}"
      title = translated_attribute(title) if title.is_a?(Hash)
      title
    end
def resource_title(resource)
      title = resource.try(:title) || resource.try(:name) || resource.try(:subject) || "#{resource.model_name.human} ##{resource.id}"
      title = translated_attribute(title) if title.is_a?(Hash)
      title
    end
Returns a descriptive title for the resource