app/helpers/admin/todos_helper.rb
# Returns the list of :null and :safe database column transitions.
# Only these options should be shown on the custom todo edit form.
Returns the list of :null and :safe database column transitions.
Only these options should be shown on the custom todo edit form.
Returns the list of : null and : safe database column transitions . Only these options should be shown on the custom todo edit form .
def todo_edit_as_options(todo = nil)
    options = (todo.as.present? ? todo.available_as : Todo.todo_types).keys
    options.map { |k| [t("todo_types.#{k}.title"), k] }
  end
def todo_edit_as_options ( todo = nil ) options = ( todo . as . present? ? todo . available_as : Todo . todo_types ) . keys options . map { | k | [ t ( "todo_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 todo_type if no restriction
todo