Angular interceptor to translate Angular friendly objects to Rails friendly arrays