class TrustyCms::Config::Definition

def normalize_selection(choices)


here we standardises on an options array-of-arrays so that it's easier to validate input
in definitions we accept anything that options_for_select would normally take
def normalize_selection(choices)
  choices = choices.to_a if Hash === choices
  choices = choices.collect{|c| (c.is_a? Array) ? c : [c,c]}
end