def thing_path(model, object)
      id = object['ID'] || object['id']
      send(:"admin_#{undersingularize(model)}_path", id: id)
    end
def thing_path(model, object)
      id = object['ID'] || object['id']
      send(:"admin_#{undersingularize(model)}_path", id: id)
    end
Private: Returns the path of the thing.

 object - An instance of a model.

 Returns the path of the thing.