Environment configuration does not work as documented
mayatron opened this issue · 3 comments
mayatron commented
The README.md
shows the following example configuration for the allowEmpty
option:
// config/environment.js
module.exports = function() {
return {
moment: {
allowEmpty: true // default: false
}
}
};
However, this does not seem to work for me, unless I change the key from moment
to 'ember-moment'
like this:
// config/environment.js
module.exports = function() {
return {
'ember-moment': {
allowEmpty: true // default: false
}
}
};
Additionally, the application config appears to point to ember-moment
as the expected key in multiple places:
ember-moment/src/services/moment.js
Line 23 in c80dd17
Am I missing something? Or should we update the README from moment
to 'ember-moment'
?