class TrustyCms::Config::Definition

def selection


if :select_from is a proc it is called first with no arguments and its return value passed through.
Returns the list of possible values for this config entry in a form suitable for passing to options_for_select.
def selection
  if selector?
    choices = select_from
    choices = choices.call if choices.respond_to? :call
    choices = normalize_selection(choices)
    choices.unshift ["",""] if allow_blank?
    choices
  end
end