app/helpers/admin/fields_helper.rb
# Returns the list of :null and :safe database column transitions.
# Only these options should be shown on the custom field edit form.
Returns the list of :null and :safe database column transitions.
Only these options should be shown on the custom field edit form.
Returns the list of : null and : safe database column transitions . Only these options should be shown on the custom field edit form .
def field_edit_as_options(field = nil)
    options = (field.as.present? ? field.available_as : Field.field_types).keys
    options.map { |k| [t("field_types.#{k}.title"), k] }
  end
def field_edit_as_options ( field = nil ) options = ( field . as . present? ? field . available_as : Field . field_types ) . keys options . map { | k | [ t ( "field_types.#{k}.title" ) , k ] } end
Returns the list of :null and :safe database column transitions.
Returns the list of : null and : safe database column transitions .
# Return every available field_type if no restriction
field