Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Why new record type is pluralized as per default?

$
0
0

@beddu wrote:

Hi everybody!

I am trying to understand this little detail about ember data and I hope that someone can help me to figure it out.

I have a model describing a command and I send “commands” to the backend by

var record = this.get('store').createRecord('command', {...});
record.save();

I create a single record per time, with a single record creation function, and I push only that record to the backend, then why the message payload that is sent to it has type commands? (pluralized)

Before to find the way to switch off this behaviour, I would like to understand it.

Thanks in advance

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles