def toggle_link(object, field, link, true_values, false_values)
      state = object.send(field)
      icon = state ? true_values[0] : false_values[0]
      tooltip = state ? true_values[1] : false_values[1]
      data = {
        trueicon:     true_values[0],
        falseicon:    false_values[0],
        truetooltip:  true_values[1],
        falsetooltip: false_values[1]
      }
      action_link tooltip, link, icon, class: "toggle #{field} #{state}", data: data
    end
def toggle_link(object, field, link, true_values, false_values)
      state = object.send(field)
      icon = state ? true_values[0] : false_values[0]
      tooltip = state ? true_values[1] : false_values[1]
      data = {
        trueicon:     true_values[0],
        falseicon:    false_values[0],
        truetooltip:  true_values[1],
        falsetooltip: false_values[1]
      }
      action_link tooltip, link, icon, class: "toggle #{field} #{state}", data: data
    end
extention of action_link for boolean toggles