0

I have a type media. I would like to use that name for both the singular and the plural forms. but I am struggling to figure out how to do so. I imaging it is by adjusting Ember.Inflector but I have sent every variation at it that I can think of with no luck.

Note: I am currently stuck on Ember 1.13, and upgrading it really isn't feasible right now.

Lux
  • 17,835
  • 5
  • 43
  • 73
Matt
  • 2,795
  • 2
  • 29
  • 47
  • Have you tried `Inflector.inflector.irregular('media', 'media');`? – Lux Jan 29 '20 at 18:59
  • I have tried that but it seems to break items that return multiple. So fixes some problems creates new ones. – Matt Jan 29 '20 at 19:22
  • how does it break? – Lux Jan 29 '20 at 20:27
  • One specific example when it is nested on a another type say foo and the response comes back {media: [], foo: { media_id: '1' }} it fails to load the media records into the store properly. – Matt Jan 29 '20 at 20:50
  • what serializer? should be fixable there. this doesnt look like standard `JSON:API` – Lux Jan 29 '20 at 20:59

0 Answers0