After some more testing I have discovered the error. It's not a rules problem, the problem was that the Ember.Inflector
rules must be declared before Ember.Application.create
I was doing:
var App = Ember.Application.create();
Ember.Inflector.inflector.irregular('perfil', 'perfiles');
Ember.Inflector.inflector.irregular('moduloPerfil', 'modulosPerfiles');
And the correct order is:
Ember.Inflector.inflector.irregular('perfil', 'perfiles');
Ember.Inflector.inflector.irregular('moduloPerfil', 'modulosPerfiles');
var App = Ember.Application.create();
Sorry, it's a silly mistake.
FIXED: Finally this is not an error and the code it's right. The rules can be declared before or after the App creation. The original code works without errors so the problem maybe was another thing that I didn't see.