class TrustyCms::Config::Definition

def selected(value)


this will return the name corresponding to the currently selected value.
If the config item is a selector and :select_from specifies [name, value] pairs (as hash or array),
def selected(value)
  if value && selector? && pair = selection.find{|s| s.last == value}
    pair.first
  end
end