Adapt relation autocompletion to new JSON convention in Rails.