def edit_thing_path(model, object)
      id = object['ID'] || object['id']
      send(:"edit_admin_#{undersingularize(model)}_path", id: id)
    end
def edit_thing_path(model, object)
      id = object['ID'] || object['id']
      send(:"edit_admin_#{undersingularize(model)}_path", id: id)
    end
Private

 model - The model name.
 object - An instance of a model.

 Returns the edit path of a model.